I would consult your doctor first. Some doctors advise pregnant woman not to have sex for some reason or another. In general though its fine, and the sperm is supposed to help speed up labor.
Information on this site is provided for informational purposes only.
It is not meant to substitute for medical advice provided by your physician or other medical professional.
If you have or suspect that you have a medical problem, promptly contact your physician or health care provider.