has anyone used a shock collar to train your dog. it to chase cars or go in the road? did it work?

Ky 8-15-17👼🏼 & 10-28-17👼🏼 Pregnant with my🌈💕
I have a black lab and we have tried everything to get him to stop chasing cars when they go by. (We live in the country). We've never tried using a shock collar tho and I'm thinking about going and buying one today. I'm just scared to hurt him with those things. Has anyone used a shock collar for this purpose? Did it work?