Use of progesterone during pregnancy

This might be weird to ask but I’m wondering something..

Some pregnancies end for good reasons.. defects and other things. Does using progesterone keep an unhealthy pregnancy going ? Or will it end either way if something is really wrong ?