Sure it will work as long as you have a good ground. But it will charge all the time its hooked up. Gotta watch overcharging/heating.
Also you need a pretty heavy wire to carry the charge.Sorry I dont know one guage from another but light wire will get HOT FAST.