No. New York City was not a colony—it was a city within the Colony of New York.
The Thirteen Colonies were British colonial provinces that declared independence in 1776:
New York City (then New Amsterdam → New York) was the principal port and largest settlement in the Province of New York. The colony's territory extended far beyond the city—into the Hudson Valley, Mohawk Valley, and westward to the Great Lakes.