Hurting after sex

Currently 27+4 and me and my bf recently just had sex, it's been a good 2 months I really don't like it anymore since I been pregnant now the lower part my stomach hurts, also been bleeding a little, the doctor said my placenta was low lying could it be coming from that?