Medications for substance use disorders are part of treatment programs led by medical professionals. They can be an important part of recovery.  They work best as part of a support system such as a 12-step or other recovery program and counseling or therapy.