When they are aggressive they can bite.
It is important to find the cause of the aggression and train the dog to be gentle before his biting of strangers causes a serious wound.
Often, dogs are fearful of strangers because their owner have inadvertently rewarded them for being overprotective in the past.