An illegal isn't allowed to work anywhere in the country. Since NYC is part of the US, and illegal can't work there legally.