If I have in state tuition am I able to leave state for months or no?

I want to get in state tuition at a college in New York but my friend offered me to stay with him for a few months to help with bills and get out of here for awhile, would this affect my tuition or anything? I wouldnt stay longer than 3-4 months. I just want to make sure before I risk anything I dont want the college to get pissy. Thanks!