When you get started with running long distances there will certainly be some pain but how much pain is acceptable and when is it a cause for concern?
As I was looking for some good guidelines on this topic, I came across this article and found it very useful to understand when is it ok or not ok to push through pain.
https://www.verywellfit.com/when-should-i-run-through-pain-2911369