Newton's law applies here because an object in motion (your body) stays the speed that you were going, so if you were hit, your body would keep going when the car is stopped. This causes your body (especially your neck) to whip back and possible break.