I live in NJ and work in NY. Do I need to file in NY?

Like many people that work in NYC, I live in New Jersey and work in NYC. Do I need to file in both NJ and NY? TurboTax software is telling me that it doesn't think I need to file in NY. Want to make sure.