Avast one firewall VS network worm

say you got a network worm on your computer and it tried to spread over the network would the other computer with avast one firewall be protected from it? Also is it on by default.

I guess that depends on the firewall/network settings

What about by default

I dont use avast

https://support.avast.com/en-ww/articleSearch/?searched=Firewall