Can you have sex with an yeast infection?

Yes - use protection. Hope you are using Mycostatin (nystatin) cream. Sex may be uncomfortable but not contraindicated. Use condom protection. Partner may already be infected & thus may need treatment as well. Hope you like yogurt with live culture!