No, you cannot change keyboard settings from your application. This will be a huge security risk.
Instead, do what most third-party keyboards do, combine a small action with your keyboard where you tell the user how to change the keyboard settings, as well as a button that brings the user to the correct settings page.
source
share