Want to be free from opiates. Thinking of getting the

Want to be free from opiates. Thinking of getting the shot the doctor can give you monthly that will prevent you from feeling the effects of opiates if you use .
My buddy gets it and he’s been free from opiates for years. Anybody tried this ?