iPhone data ... things data recovery, there’s never any absolute certainty that your files can be restored. With that in mind, we’d recommend ensuring you have an iCloud backup where possible ...
Alternatively, you can also opt to back up your iPhone to a computer. Of course, if you have a Mac, the process of doing so ...