Yes, firewalls are essential for protecting computers on public networks. They act as a barrier between your device and the public network, filtering incoming traffic and blocking unauthorized access attempts. Software-based firewalls, often built into operating systems, and hardware-based firewalls, like those found in routers, are both effective in safeguarding your computer on public networks.