I have a question

Is it dumb to get an apartment before a car? I have reliable transportation & the living situation I was in was uncomfortable, grandma always nagging and being disrespectful to me everyday about anything little. If I cooked something it was an issue.