You'll usually automatically get a ticket for following too close if you rear-end somebody. If you weren't following them too close, you wouldn't have hit them.