I had two miscarriages so I got prescribed aspirin and progesterone

I’m 5 weeks pregnant and go prescribed baby aspirin and progesterone suppositories does that actually help prevent miscarriage? I hope so I had to pay out of pocket and I would hate to go trough another miscarriage. 🥺