Pain during and after intercourse while pregnant

Rosalinda • Having baby No.2
I'm currently 17 weeks and 4 days pregnant. Sometimes when having sex I feel a sharp pain during and after. I get scared sometimes cause I feel like it affects my baby. Is this normal and has anyone else experienced this?