ESD can take out the electronics in a sensor, yes. It can also introduce noise on the signal leads.
Other things that can affect ultrasonic distance units include temperature, humidity, ultrasonic noise from air leaks, and the incident angle of the sonic wavefront on a curved surface to name a few.