masturbation with infection

I think I might have a kidney infection I'm going to the doc today but I'm so dam horny because my period is coming like tomorrow do you think it's ok to masturbate