Yes, that would be something to do if the pain persists--see your doctor. I would also suggest putting an ice pack on the area and resting. Don't try to run again until it stops hurting.
It's not necessary to push so hard that you risk injury--which can be easy to do if you aren't used to exercise. So... take it easier!
Jay