Would this also apply to New York City, since the State of New York allows the sale and posession of hand guns.
I would assume so; but this is NY...
California has a preemption clause, which reserves the authority to regulate firearms to the state alone. Some cities have violated it in the past.
If NY state has a preemption law, and no "home rule" provision in their state Constitution, and you could get the NY Supreme Court to take such a case.. maybe... don't hold your breath.
Besides, even New York state laws are abominable, including as they do a ban on ugly militia guns.