It's kinda hard to say exactly, it's like when you're driving a car, you can wear a seatbelt but sometimes thats just not enough to protect you. The best thing you can do to stop viruses is have a great, up to date virus scanner, I personally reccomend ESET NOD32 as it's super efficient. A great idea is also to run scans with a product like Malwarebytes Anti Malware.