Fire car with obstacle avoidance

But can pin 9 and 10 function as a digital pin with ouput High or low??