XIAO Overheating when using usb power and battery power

Hi, again, I don’t know if I didn’t explain myself well before or if my English is not very good. What I want to know is if I connect the XIAO with a battery as the picture shows, could I connect the USB-C at the same time to program it without disconnecting the battery and the powerboost?.

In the event that I cannot do it with the connection shown in the figure, what other option do I have to program it the XIAO without disconnecting the battery? I hope I have explained it well, and thanks for your answers.