Yes, it will work.
The battery near the charger end will charge faster and discharge slower than the battery at the load end.
If you want to balance them, have the charger feed the top negative and bottom positive, have the load tap the bottom negative and the top positive. Now all batteries will charge and discharge uniformly. It is all about balancing the resistance of the wires to every battery.
Mike C.