USB and Battery used together

Maybe a silly question. I need to constantly change my code to fine tune the robot. I don't want to keep switching the jumper to switch between battery and usb power supply.

Can I use battery power supply permanently while loading the new code via USB port? Any documentation on how to do it is appreciated. thank you..