Hi there,
βYesβ The battery will be recharged by the onboard charge controller, if the USB-C is connected.
I would look to the schematic and see if connecting the 5V source directly to Pin VCC(5V) of Xiao
will work as long as NO other usb device is plugged in.
HTH
GL PJ