Bleeding after sex @ 39wks pregnant

I'm 39wks 4days and just had sex with the bd, when we were done there was some blood on him and on me when I wiped. Is this normal? I'm also feeling a bit crampy like menstrual pains.