Yes sex is safe for the full 40 weeks as long as you are having no complications with the pregnancy. It doesn get uncomfortable in some positions but it doesnt harm the baby
Yes you can have sex while pregnant unless your doctor/midwife tells you otherwise!
Yes its perfectly fine. Unless your doctor tells you other wise.
Yes it is ok too have sex, axially they encourage it! It will help in labor!