In general, if your dog bites someone, it will not be put down.
However, you can expect to be sued by the person who was injured.
Typically, your dog must attack without being provoked in order for you to be held liable.
However, your dog must also have been properly contained when it attacked.