Painful sex while pregnant

k

Did/does anyone that have intercourse feel a little weird and painful feeling when having sex but it is only at the beginning then after it feels alright while pregnant? I'm 6months and I feel like this why?