Sex ?

Can I have sex even if I have a yeast infection ? I'm be ill be going to the doctor today but since I'm going out of town for 2 weeks I wanted to do it before I left with hubby but idk if it's dangerous for him .