Answer no. You should only answer yes if the sole purpose of your trip is transit. In your case, the purpose of your trip is twofold: one purpose is to get to Canada, but another purpose, however secondary it may be, is to spend a few days in New York.
Credit:stackoverflow.com‘