There are several different types of firewalls and they all do the same thing: protect your computer from intruders. So, it's very important to keep your computers firewall turned on and have an active antivirus program.
To learn how to turn your firewall on or off on a Windows computer, check out Microsoft’s how-to guide.