No it isn’t. iOS have had malware problems as well as a result of people jailbreaking their device to install software from third-parties. Apple fortunately makes it increasingly difficult to jailbreak it.
We can also see that Apple were unable to protect their OSX devices as a result of allowing third-party app installations.
We can also see that Apple were unable to protect their OSX devices as a result of allowing third-party app installations.