Sexual activity and female orgasm are safe in pregnancy. It is not unusual for a small amount of vaginal spotting to occur after penetrative intercourse. If bleeding is heavy or recurrent it is best to seek review immediately. Penetrative intercourse should be avoided in patients with a low lying placenta (placenta praevia).
More information: https://www.nhs.uk/conditions/pregnancy-and-baby/sex-in-pregnancy