Can I use a rocker switch from a 24 volt machine on a 12 volt machine?

I am going to wire led lights inside my car like by the pedals in the front and on the passenger side. I have a rocker switch from a machine that runs a 24 volt system, my car is a 12 volt system. Can I use the rocker switch in my car?
3 answers 3