That depends on whether the State decides you had "good cause" (as defined in UC regulations) to voluntarily quit your job. Assuming you have applied for UC benefits, you're going to have to follow the process and see what happens.
BTW, your employer does not determine whether you receive benefits - the State does. All your employer can do is contest your eligibility.
You may want to make a complaint with your State's equal rights division or the federal EEOC about the sexual harassment.
A person, who is nice to you, but rude to a waiter, is not a nice person. (This is very important. Pay attention. It never fails.)