There is still a widespread believe that Apple Macs do not get viruses, Trojans, spyware and other types of malware, but this simply is not true. It is much safer to access the internet with a Mac running OS X than a Windows PC, but it is not completely safe and some types of malware target Apple users. After installing OS X Yosemite you should open Safari and fix the security and privacy issues that afflict it.