I have MD listed as my permanent residence, but I lived in IL all year. Do I have to pay taxes to both states??

I keep my permanent address as my parents because I move so much.