Is it safe to have sex?

Beth
I am 5 weeks and a few days pregnant and my husband and I are expecting our first child. I've heard about women having sex while pregnant, but is it safe?