The charger will see it as two 12V banks, but you will probably get uneven charging with the different charging rates and characteristics of the two banks. Bottom line is yes, it will work.
2015 Seaark 1872 MV CC Etec-90
Two Helix 12 CHIRP SI's, , MinnKota Riptide ST80/i-pilot Link, Bob's Hydraulic
2018 Robalo R180 CC, Yamaha 115
Bitter Gun Owner