Sex during 1st Trimester

I realize this is a silly question but is it okay to have sex during the first trimester? I want to make sure it won’t cause a miscarriage as I’m terrified. I’m 8 weeks along and we’ve seen the tiny heartbeat and don’t want to do anything to harm that. Is there any way that sex can cause harm to the baby??