Although penetrative sex cannot directly cause a yeast infection, a person may develop a yeast infection after sex if they engage in oral sex or insert fingers or toys into the vagina.
This is because these activities may introduce bacteria into or around the vagina.