Yes. A firewall will not protect you from viruses and/or other malware (malicious software).
A firewall limits access from outside your network by blocking or restricting ports. It is a part of a computer system or network that is designed to block unauthorized access while permitting authorized communications. (more…)