https://www.nyc.gov/html/dot/downloads/pdf/trafrule.pdf

New York City Traffic Rules Section 4-04(c)(3), a pedestrian shall not:

* Cross any road at an intersection except in a crosswalk.
* Cross a road except in a crosswalk at any block where there are traffic control signals at the intersections bordering the block.