The U.S. Department of Health and Human Services doesn’t recommend Truvada for preventing herpes infection in people with HIV infection.
However, some clinical studies have tested whether Truvada, when used for PrEP, can also prevent herpes infection. These studies, which can be found here and here, had mixed results.
If you have questions about using Truvada to treat herpes, talk with your doctor or pharmacist.