Yeast infection and Sex

So I have a yeast infection and I'm about to go buy Monistat. My question is which one should I get? I haven't seen my boyfriend in 8 months and he's coming to see me in 5 days. I've heard you're not supposed to have sex because it'll hurt/you could possibly pass it on but is there anyway to cure it before he gets here?