Apart from the risk of STIs which can harm your foetus, having intercourse will not harm it.
In the later stages of pregnancy, intercourse has the potential to bring on labour. But other than that, sex during pregnancy is fine.