Yes, NAOqi OS comes with a firewall with two predefined modes:
Development: all ports are open on all network interfaces.
Production: all ports are closed, except ssh on the Ethernet wired link.
For further details, go to: Firewall - Network access limitation