Anal sex at 30 weeks!?!?

Is it safe???? Me and my husband just had anal for what felt to be an hour (30 mins tho probably). After he finished I just felt so sore. Now I’m laying down cuz I’m so exhausted and uncomfortable:( I enjoyed it towards the end I’m just wondering if it’ll hurt the baby???