There is nothing wrong, medically, if you intend to have sex during pregnancy; many couples enjoy having sex during this period. However, several factors like cervix, placenta, history of sexually transmitted diseases may pose a risk to the fetus. Hence it is advisable to consult your doctor regarding this.