Sure, if you have a big enough, well-trained enough dog to go for the throat of intruders only.
I’m all for shooting the bastards so they never bother another family, but people have to know their state’s laws and find a way to kill the intruder yet not end up in a jackpot.
If your property is posted, no trespassing, anyone on the property without your permission, is a trespasser. My dog would not go for the throat, but he wouldn’t let anyone he does not know come on the property. Once the a person steps off the property, my dog stops the chase.