If doing a fastboot update, you just boot the phone in fastboot and run windows_fastboot_update_rom.bat on PC, it'll be updated with no data loss. If it's a recovery rom, just flash it in TWRP, don't wipe or format anything. Downgrading or going to weekly would require a format.