does firewall prevent botnet?



If I have a hardware SPI firewall, does that prevent my computers from
becoming a zombie or part of a botnet? In other words, can a firewall block
commands from reaching botnets bots?


.