Not the preferred way to do it IMO but not the first time I have seen it either. Personally I would either add a second charger and wire one direct to each battery or change to a dual bank charger - again wired direct so the rest of the boat can be isolated during charging.