Safe to have sex?

Is it safe to have sex while pregnant? I’m 7 weeks along.