No, you just got virus, unless you paid for very expensive anti-virus software. Then you would still get viruses. Not because you downloaded something, but because your grandma did, and then you got an email from her, with an attachment.
Apple/Mac had less viruses, for 2 reasons, way less market share, less than 5%. So people didn’t take the time to make viruses, and 2, when they did, it was pretty easy for Apple to stay on top and squash it.
With iPhone being close to 50% market share, there will be viruses and security breaches like crazy. You’ll get and email, or a iMessage that will install a fake, App Store or replace a legitimate app, and now you have a virus, that has access to everything, your bank, home security, family members locations, everything.