Early pregnancy Sex

Melissa
Not sure if I am pregnant but if I was could having Sex or masturbating cause a miscarriage?