Is it ok to have sex during 29 weeks of pregnancy?

My husband and i are having sex for once in a while since pregnancy but is it safe for the baby? He is very gentle btw and considers my physical and emotional state during intercourse.