Is it safe to use a modern battery charger without first disconnecting the cars power leads ?

I know it's easy enough to disconnect the leads but during the winter and doing short journeys with heater and lights on may mean more charge is taken out of the battery than goes in so it can become a pain to continually disconnect leads and re enter the radio code assuming you know it.