I say most of the time because those nasty Malware creators now make software that impersonates approved software packages, it's important to point out you'd likely have to download the bad software from a dodgy place, like a pirate software torrent site in order to get this but it is possible. Gatekeeper won't actually let you open an application from a developer that it hasn’t already approved - you'll know when it does as the message 'X program can't be opened because it is from an unidentified developer.', it's somewhat limiting but gets the job done, most of the time. The company has a strict software policy and actually prevents the download of dangerous software in many instances via a feature named Gatekeeper. Apple has a great reputation for keeping their devices free from the scourge of malware attacks and viruses.