Yes, a 12-pin trailer plug can be used to charge the RV battery. The 12-volt power from the trailer plug will flow into the RV’s onboard battery, charging it.