If you didn’t, yes, you can go back to the public release of iOS 18.5, but you will have to use your computer to erase the phone and if you didn’t make an Archive backup, you’re going to lose ALL the data on your phone. See what you need to do here –> How to uninstall iOS or iPadOS beta software – Apple Support

