yeast infection

Does anybody know if cephalexin 500 mg can treat a yeast infection? i was prescribed it last year when i had a uti, wondering if i can refill it for a yeast infection or do i really have to go to urgent care again