Unemployment question

If I got fired due to my attendance and sick days, will I qualify for New York State unemployment?