Progesterone shots to prevent preterm birth

Shanequia
Has anyone ever taken 17P or Progesterone shots to prevent preterm birth. It was offered to me yesterday during a doctors visit  because my son was born early. I'm trying to  see if anyone else has had any experience with the medication or could offer some advise.