Use HC-SR04 Ultrasonic Sensor to move a motor

Yes, but the code has changed (I hope) quite a bit since then.