Yes, but you should check that you have voltage to the socket even if the vehicle is switched off. If, for example, you can charge a mobile phone or get a GPS to work when the car ignition is switched off, you can also charge the car battery this way.