Quite safe, and actually, highly recommended! Moderate exercise during pregnancy is important for both the mother and the baby, just as it would be healthy for anyone else. Same goes for sex during pregnancy, it doesn't harm the baby as long as it goes gentle.