Breastfeeding moms- last few days when my son nurses my nipples hurt so bad!!!!!! I just got my first period back , could that be why?????

This has never happened before. We were trying this month but my period came only after 5 days of ovulating(I took a ovulation test)

What’s going on 😓