no. valtrex only works for herpes. you will need to use a yeast medication. since i don't know if you are male or female (both can get yeast including babies) ask your pharmacist to recommend an appropriate over-the-counter yeast medication assuming your self-diagnosis is correct.
can valtrex get rid of a yeast infection