no.
in order to prevent viruses, you need to know about them. There are thousands of viruses created per hour in the world, across hundreds of platforms, software and firmware. Someone, somewhere can write malicious code to infect anyone on any device anywhere. Windows has the most viruses because it is the majority OS, but if Mac OS or Linux became the majority OS, it would become a much bigger target for malware and more UNIX and Linux viruses would be made.
You could make an AV program to block viruses coming in, but if the definitions are out of date by even a few hours, a new trojan or virus can get in and infect you, without your AV even knowing.