You can back up your iPhone's data and make sure it's safe and secure with iCloud, or by using a connected Mac or PC.
I'm not seeing reports of iOS 26 installs going sideways, but I still always take these steps before making a major upgrade.