It did work for Washington, D.C., Mayor Marion Barry, a self-professed sex addict who rehabilitated himself politically after a drug conviction by declaring his powerlessness over drugs and sex, repenting, and entering a program.
After his admission about his sex addiction, he could not rehabilitate himself politically at all.