Welcome to the forum
Yes it will as long as the “charge line” is enabled. Depending on Tow vehicle, there may be a fuse or relay or both that need to be installed.
Easy way to know is with a volt/ohm meter. Plug into the tow vehicle and start the engine. Measure the voltage at the trailer battery, anything over 13VDC and it’s charging.
__________________

2012 Copper Canyon 273FWRET being towed by a 1994 Ford F350 CC,LB,Dually diesel.
Airlift 5000 bags, Prodigy brake control, 5 gauges on the pillar.Used to tow a '97 Jayco 323RKS.
Now an RVIA registered tech. Retired from Law enforcement in 2008 after 25+ yrs.