I take it you mean thrush in the vag rather than thrush in the breasts?
The same drug is sometimes used for thrush in the breasts but at a different dose and does have risks.
Given that there are safe alternatives for vaginal thrush - pessary or internal cream, I would use that rather than the oral flucanazole tablet TBH.