Sex and pregnancy

So is it safe for your SO to go inside you when having sex while pregnant? 
I know some people do it to induce labor so I'm just wondering.......