Sex with yeast infection

Im not sure about this kind of stuff so I’ve been fighting off an yeast infection and wanna know if its safe to have sex while having a yeast problem?