Sex early pregnancy

Is it safe to have sex early pregnancy? I’m few weeks pregnant?