5 months

I am 5 months and is it ok to still have sex? Will it hurt the baby? First time being pregnant