It depends- you probably can qualify for an exception based on your situation:
There is an exception for New York state residents if you did not have an abode (residence) in New York, maintained an abode outside of New York and did not spend more than 30 days in New York during the year.
There is a second exception if you were in a foreign country for at least 450 days during any period of 548 consecutive days and you spent less than 90 days in New York in that 548 day period (or a calculated ratio).
See Am I considered a New York State resident for income tax purposes? for the details.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"