Yup!
Same thing for ADHD.
Medication helps having willpower/focus to develop better habits and realize you are not a useless dumb human. It's just that your brain is a little finicky to get going sometimes.
In fact the few diagnosed ADHD people I know are wicked smart. It's just that their brain overclocks to unproductive levels without medication.