It's possible but more auto electrician stuff, a fair bit of wiring an relays involved.
Would basically have to run the wiring to the switch into the ignition wiring instead, it's a good idea actually, let me know if you do anything about it
Only downside is you wouldn't be able to turn lights off when ignition is on? Sure there may be a way around it tho