Yes, iOS devices are pretty much immune to malware attacks. That is because of the design. Apple does not allow users to install apps from just anywhere. You can only install apps via the official App Store, where all the apps are frequently checked for any such issues. So the chances of downloading a malicious app from the App Store are close to zero.