Yes, the On Premise Engine can be installed on any drive on the computer.
You'll just need to:
Update the appsettings.json file to use the paths pointing to your desired drive
Update the Task Schedule action to point at the folder where you installed the On Premise Engine