Yes, battery cables should be disconnected when charging to prevent the battery from overcharging. When a battery is overcharged, it can lead to a loss of water and gas, which will cause the battery to swell up.