I... believe so? Speaking from experience with older models: You can hold a combination of the keys to go into
https://www.theiphonewiki.com/wiki/DFU_Mode, and if you plug the device to your computer, you can reflash the OS. The phone would have multiple partitions, so it would only flash the OS partition with the new version of the OS, and leave the (encrypted) data partition alone.