Throughout you entire pregnancy and more when you're closer to your due date. It will help you dilate and be more flexible during labor.
I've always had sex up until I delivered.
You can have sex throughout your whole pregnancy, unless told by your doctor not to, cramping, bleeding. But its safe to do it just find comfortable positions to be in