Spotting after sex- second trimester

My husband has been reluctant to have sex ever since I became pregnant thinking that it might hurt the baby. Yesterday we somehow tried for it and it felt painful that I asked him to stop. While I wiped, I saw blood. Should I consult the doc or is it common?

Ps: I was very dry.