Sex while your Pregnant

I know this is gonna sound silly, but is it safe to have sex while your pregnant? I’ve don’t want to harm the baby if it’s not but I’m not brave enough to ask my doctor....😂