Question About NYS Labor laws V. Vacation

I thought if you earned the time they had to pay you for it…unless you were fired.