Sex in 2nd trimester?

Husband and I haven’t had sex in like 2 months. Last time we did it didn’t hurt during, but after I had awful cramps for like an hour. I read this is “normal” as orgasms cause uterine contractions but it freaked me out. We had 2 prior losses and multiple chemical pregnancies. I’m 14w now and feel like our relationship is suffering from the dry spell but not sure what to do? Is it as likely to hurt in 2nd trimester? The dr hasn’t warned me not to have sex but I guess I haven’t asked either.