Yes, you can update without losing data, although It is recommended to do a backup previously in case anything goes wrong. Previously you could do it almost every time from the recovery decrypting the data and transferring it to a pc, but with android 12 there isn't any recovery capable of doing...