As a certified running coach this is precisely what I tell my runners...the minute they feel a little twinge of pain/discomfort I recommend that they stop running, allow some time off and then slowly return to the sport.
This is also a good time to review your running plan. Have you been fitted for running shoes? What type of running surface are you running on? Are you giving 48 hours of recovery between runs? Are you increasing your mileage slowly over time? Etc, etc. This is where keeping a running journal may help you see if there is something in your training that is aggravating your situation.
What many new runners fail to understand is that while the body's cardio-respiratory system adapts quickly to running, the musculo-skeletal system (especially the connective tissues) can take a solid year to develop.
I hope this helps and I hope you are back to running soon.
RUN SPARK STRONG!