Configure strapi/config from within a plugin?

Hey,
is there a way how to configure strapi configuration from within the configuration of my plugin?

Example: My plugin depends on some email-plugin-options, CORS-related, maybe even DB-related stuff?

Is there a way that the user of my plugin only needs to install the plugin and the plugin overrules missing / wrong configuration of the strapi where the plugin is installed?

Cheers

@lolafkok ,

Define default values for the email, CORS, and database settings your plugin requires.
If providing a user-friendly configuration interface is essential, create a custom admin panel section within your plugin. For more granular control, use the beforeInitialization hook to access and potentially modify Strapi’s core configuration before it’s fully initialized.