24 weeks pregnant & had hardcore sex

Will the baby be okay? Me & my husband haven’t had sex in a month. Last time we had sex he was hitting my cervix so i completely stop having sex with him but today we were in the moment and ended up having hardcore missionary sex now my vagina is throbbing will the baby be okay? I felt him touch my cervix a few times i just don’t want to cause pre-term labor