Any danger to setting pin HIGH repeatedly?

I'm wondering if its possible to hurt any of my electronics by constantly setting a pin to either LOW or HIGH output repeatedly.

I have an ultrasonic sensor constantly pinging to get the distance then based on the result i set a LED to HIGH or LOW over and over (without checking if it already is HIGH) until the range of the sensor goes within one of the conditions for the opposite.

It won't hurt the processor. I can't speak for your electronics.

However if you mean by "without checking" whether that will do any damage: no.