No, they don’t all do that.
Every dog I have had has barked at both pets and sometimes people walking down the street, even non pit bulls (we also have a long haired retriever, and have had a beagle mix, as well as a cocker-lab mix) and the have all done this..
It would be a strange dog indeed that DOES NOT bark at pet and people walkers ;).