Yes I have done the exact same thing. I wired the switch so it provides ground for a relay.