Hi, yes valaciclovir can be used to treat both oral (cold sores) and genital herpes.Even it is used to treat other illness like herpes zoaster, CMV infection. you can check his prescription which will contain the diagnosis written in it. Regards