To tell you the truth, touching yourself does not have any effect on the baby. Having sex with your partner can help you to have an easy labour or lessen the hours of labour, and that worked for me while I was pregnant (true story). Unless your doctor advised you not to masturbate because due to pregnancy complications.
hindi naman po sya masama. ok lang po sa buntis yun.