You can voluntarily leave treatment at any time, but leaving can lead to potentially dangerous consequences like withdrawal and relapse.