That should be possible for most games, BUT.
The big ‘but’ is that some games don’t allow kb/mouse and gamepad to be used together natively or have problems like delayed input when switching between both.
For such cases vorpX has a built in gamepad emulation that allows you to map gamepad input to kb/mouse actions. You can find the acording setting (‘Overide X-Box Gamepad’) on the input page of the ingame menu. This gamepad emulation should work with most games that aren’t older than 10 years or so.
For official profiles ‘Overide X-Box Gamepad’ should already be set to the best state for the game (button mapping might not be perfect though), for user profiles you will have to check whether you need it or not.