Yes, it is possible. A yeast infection is not considered a sexually transmitted disease, but it is possible to get it from a partner who, say, has a penile yeast infection or oral thrush. Using condoms or a dental dam during sex can help reduce the risk.