Yeast infection issue.

Amy • Wife ✨ Momma to a little girl & a little boy #3 on the way!

So I went to the doc on the 5th and she told me I had a yeast infection. So I got the diflucan pill. I started feeling better almost immediately so my SO and I had sex like 2 days later. Probably dumb of me. Because now I think it's back. Is there a chance he got it and passed it back to me? Or maybe the pill didn't work?