Honestly, the base temperament is the base temperament. My male was exposed to reactive dogs and aggressive dogs growing up, and was not affected whatsoever.
I personally think avoiding badly behaved dogs is a good idea, and I think in terms of "learning bad behaviours" from other dogs can occur in terms of puppies learning how to play with other dogs, social skills, and some manners in the home can be learned from other dogs. Exposing your dog to a "bad dog" occasionally shouldn't affect them. But yes, generally speaking, they can "learn" bad behaviours or ill manners from other dogs... I think it depends entirely on the behaviour along with the dog's base genetic temperament.
SG S-Hunter vom Geistwasser CA CGN TT OFA (Airport Wildlife Control K9)
Zenna vom Geistwasser
“Train on the field, not on the Internet.”