Short answer: it's the ticket, not the course, that can raise your rates. A course can help.
The short answer
Traffic school itself doesn't raise insurance. What can raise your rates is a ticket that ends up on your record. In many states, an eligible course can keep that from happening, or earn you a defensive driving insurance discount.
Florida
Electing Basic Driver Improvement for an eligible ticket generally keeps the points off your license. Drivers 55 and older can also look at our Florida insurance discount course.
Texas
If a Texas court dismisses your ticket after a driving safety course, the ticket isn't on your record. Separately, many insurers give a discount for the course. See Texas defensive driving for insurance.
New York
PIRP gives a 10% discount on liability and collision base rates for 3 years. It doesn't remove the ticket, so the violation may still affect your rates. Learn more in NY PIRP: how much it saves.
Ask your insurer
Every insurer is different. Before you enroll, ask your agent which courses they accept and what the discount is.