Using the switch function of a DC-jack to disconnect a load
Yes, your schematic is correct.

You may need to test though to make sure that there isn't a momentary short-circuit at any time during insertion. Most will probably connect the charger to the battery prior to opening the switch contact.