In Texas it is. Not very prudent, or smart, but legal.
Now if the neighbor's kids are raising felonious hell in your front yard at night, you can part their hair with the shotgun, not just shoo them out.