The drug penalties in NY state are severe and even possession of small quantities can be punished by jail time. In practice though, few drug charges ever receive the maximum penalties. With proper legal representation most first time arrests for small quantities can usually be resolved without a criminal record. Larger quantities, sellers and repeat offenders risk a realistic possibility of a being sentenced to a jail term if convicted. Individuals with drug additions can sometimes be diverted into a treatment program to avoid a felony.
You need a skilled attorney with experience defending against New York drug charges to evaluate your particular case, and explain your options.