progesterone shots

Al
Has anyone else been advised to get progesterone shots to prevent preterm labor? If so, what are your thoughts??
The doctor is saying start at 16 weeks and get them for 17 weeks because my son was born at 35 weeks but I'm unsure.