You would be alright using mountain biking shoes while riding a road bike. People do it quite often and experience no problems. You are generally better off not using road biking shoes with a mountain bike though, as they are not as sturdy and will not work as well as mountain biking shoes.