Help please

During intercourse I had a pain that got worse as we continued. The pain is ranging from anus to vagina. Couldn’t even push my pee out because it hurt that bad. Any ideas what this could be? Had a miscarriage two weeks ago and had unprotected sex 3 days after that. Could I be pregnant again and that’s why it’s painful?