Yeast Infection pill

So I got my 1st ever yeast infection whoo hoo right. 😞 anyways so I got the pill you take one dose. And I was wondering when can I have sex? 😖 do u think I’ll be ok after 4-5