Is it “safe” to masturbate again?

I have had what I thought was bv, but turned out to be just a yeast infection. I took the prescription for the infection on Thursday, and I haven’t masturbated or had sex since then. Is it “safe” for me to masturbate and/or have sex now that’s it’s been a few days?