Yes, this should work. Make sure that the metallic part of the regulator has a good ground. Also, you want to wire it to the key switch, not the battery, because there will be a tiny bit of discharge current through the regulator when the engine is off if you directly connect it to the battery, which will make your battery go dead. So, you only want a connection between the regulator output and the battery when the key is on.