Is it ok?

Is sex in the first trimester ok? My fiancé and I had sex (wasn’t rough) I’m 4 weeks pregnant. I kept freaking out about our baby since I heard so many females bleed After sex my baby ok??🥺

there was a lot of movements I had slight little cramps that was uncomfortable but we stopped and I feel perfectly fine. I cleaned myself up there’s no blood but is my baby still ok? Should I avoid sex? We have a history of a miscarriage so I’m freaking out