A firewall is not capable of protecting your computer system from viruses and malware. As stated above, the firewall was created to limit outside access to your network, it makes it difficult, then, for attackers to bypass it to gain access. At the end of the day, then, you will still require an anti-virus program to protect your system from viruses and malware.