Hit in eye, bright white flashes, my eye hurts. Should I drive to er?

Yes. Especially since i don't know how hard you got hit, and white flashes are a sign that most likely your retinal has been affected. Not only that, traumatic glaucoma, abrasion, hemorrhage, retinal contusion or detachement are some of the things that could have happened.