Just curious

Is it ok to have sex while pregnant Im 4 weeks and I want to make sure I'm not harming it?