Yes, you can easily block pop-ups on your iPhone through the built-in
Settings app, specifically within the Safari settings, by enabling the "Block Pop-ups" feature, which works for the Safari browser and helps prevent most unwanted ads and windows.
I don't use an iPhone so I can't test it.