Can I masturbate with a yeast infection?

Is it safe to masturbate when I'm getting over a yeast infection? It was painful yesterday and the day before but I put in a monostat ovule yesterday and it's feeling much better today. My period is about to start and I am SO horny though! Is it safe to masturbate? I'm just interested in clitoral stimulation right now, I definitely don't want penetration.