No it will not hurt the baby. Unless you are considered high risk or the there is something wrong and a Dr tells you no sex, it is perfectly fine the entire pregnancy. The mucus plug will not be effected by having sex either and is not necessary to have sex.