Accidentally clicked on ad on my iphone, viruses?

I accidentally clicked on an advertisement in the ask.fm app, and it redirected me to an app in the app store. I didn't download anything, I just closed the app store. Should I be concerned about malware or viruses now?

My iPhone isn't jailbroken, by the way.

If you don't download anything you should be safe.

You're good as long as you didn't download anything