Crazy question

I had a miscarriage last year and I blame myself because I was masturbating and started bleeding which ended in miscarriage. I think I'm pregnant again... Five days late negative tests. But can sex cause a miscarriage?