If the packs are common-port BMS (no separate C- and P- pads on the board) then that is safe enough, as is charging via paralleled charge connections (as they are the same as the discharge), as there is full charge and discharge protection either way.
But if they are separate port BMS, then there is no cell-level protection in place when charging via the discharge connector, *or* by charging via the charge connector while leaving discharge connectors paralleled. That means if either pack ever has a problem with a cell group (they all will eventually, as they age), the BMS cannot stop charging it regardless of what happens.