The current science shows that the 12-step programs work for some alcoholics/addicts. Note that other recovery fellowships which do not use the 12 steps appear to also work.
This meta-study from the well-renowned Cochrane group showing very strong evidence of AA efficacy is open access: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7065341/