Yeah, but you have to be following the car in front of you at a distance that takes into account your reaction time and the actual braking distance. This time, the guy slammed on his brakes because of a yellow light which is maybe not a good reason... but it could have easily been someone running the red light, some kid running out into the street after a ball, the car's wheel flying off, etc.