15 days periods

Hello

I am pcos n thyroid patient but in 1st time i got long periods 3 days spotting and 12 days bleeding it still on doctor gave me Progesterone for 5 days... i always taken Progesterone for starting my periods... is that also work for stopping the periods?