17 weeks pregnant

Is sex safe? Also does the sperm do anything good or bad to the baby?