I reside and work in New Jersey. However, there was about 3 months in 2019 whereby I worked in NY State

I reside and work in New Jersey. However, there was about 3 months in 2019 whereby I worked in NY State. I worked in the vicinity of Westchester for a company based there for 3 months. I was issued a W-2. Question: Do I need to purchase a second state in TurboTax, ultimately submitting for both NY and NJ?