Yes, your new iPhone will work on PM. And, you will be able to keep your PUBLIC MOBILE account, SIM, subscription plan and phone number when you upgrade your iPhone. Be careful when you pop out your SIM because it can come out flying.
I had your exact problem last night. I installed a new PM sim, downloaded the PM app and successfully subscribed to a phone plan. But then both the app and website kept trying to send a code to my new number before it was activated. I was in a contin...