7 weeks pregnant, 6days

I want to ask, is it safe to have sex with your partner at this stage? Cause afterwards I had some cramps. Please help