I masterbated at 20 weeks

I was masterbating and when I was almost finished I started shaking really bad and doing force can that hurt baby?? I’m scared now