Technically you can, but take note of the specs of the charger. I suggest go for the more reputable brands of chargers, some Ah Ter, Ah Kow brand of chargers may not have a good DC smoothing circuit and thus will not have a clean and constant DC output to charge the batteries.
Unclean DC output (with slight fluctuations of AC) will damage batteries while charging.