Oh! So, the primary was a farce!
No, any party can nominate whoever they choose and the smaller parties in NY often nominate one of the major party candidates.