Yes you can do it.It takes allot just to be a a rehab like program , I know my ex did it.It's allot of willpower and bravery just the same.I commend you.
I don't know what your vice was and it doesn't matter,You have allot of folks at you right now about what is the right and wrong road to go...