Will this pain go away??

I’m 8 weeks postpartum and my husband and I just tried to have sex for the first time since giving birth. My Gyno said I might have pain with sex with how I healed and that’s exactly what happened. It was really upsetting. I’ve had a hard time already with my body not being what it used to but it affecting sex too really sucked. Is this going to get better? Any others have experience with this or have any advice? How long will it last or is there something i can do to help?