Is it normal to bleed after sex?

Sa

I’m 20 weeks pregnant and last night we had sex and after we finished we realized there was bright red blood everywhere. It stopped bleeding with in a couple hours but it still makes me worry. Especially because around 12 weeks i woke up in a big puddle of blood after having sex the night before. I thought i had miscarried because of the amount of blood. i ended up bleeding for 3-4 days heavily then spotting almost every day for a month. The baby was completely fine but It’s all just been really scary and make me not want to have sex. Has this happened to anyone else?