Might I take diflucan (fluconazole) if I don't have a yeast infection?

Why? All medications have potential for side effects? So why take a medication without an indication? Were you prescribed Diflucan (fluconazole) because you were about to start an antibiotic?