In some cases.
A provider would typically only recommend it in men with secondary hypogonadism, as men with primary hypogonadism will not have any benefit from these medications because their testicles have stopped working properly.
Even in those men, it is generally only recommended for those who are actively trying to conceive.
These medications have more side effects than testosterone, and they do not "kickstart" natural production. They only work while you take them, and when you stop your natural production returns to the low level it was before.
There is no harm in doing a trial on them to see if a patient responds. If they fail, or if it stops working for them, then they can always transition to TRT.