I can't speak to the neurology of it, but I could see that being the case. Forming habits & routines + making lifestyle changes are almost certainly easier when medicated for ADHD. If you engrain those changes into yourself long enough, I bet they would stick after you're off medication as well.