State tax filing

What if I attended college in NYC and formed at the university? Does that still apply to maintaining living quarters in NYC? I paid my time at the dorms using loans.