Citra Save files to 3ds

Hey guys I was wondering if anyone can tell me how Cartridge headers are handled on Saves by Citra?

I have Pokemon Ultra moon, but my 3ds is broken, so I got a room from a friend till I can replace it and dump mine. My question is, how will that work with the save files?

I want to move my Citra Save back to the game cart and be able to bank my Pokemon. Can I do that, or do I have to start my save over?