I've never done this so take what I say with a grain of salt. If you are going to try silicone spray, I would cut power to the switch first. Those cans have flammable propellants in then.
Once sprayed on it should be fine though, and since it's indoor the silicone won't gunk up much, though I personally prefer to use a dry lubricant to prevent dirt/dust from building up. The same company makes a dry lube can.