Anyone can be susceptible to a yeast infection. All it takes is a moist, warm area of the body. However, the most common way for a male to get it, is by having sex with a partner that has it.
Have you gotten a swab to double check that it's yeast though? The treatment plan does change if it isn't yeast, obviously.