Is long island in New York?

Long Island is in NY state ,but not NY city.