Yes, a man can get infected. The tricky part is sometimes men infected show no symptom, that makes men carrier of pathogen. For example, wife gets treated, husband doesn't coz he has no symptoms, when wife is free of yeast infection after the treatment, the couple have sex and the wife gets infected once again.