Can I take valtrex a few hours before drinking to prevent outbreaks?

When I have a herpes outbreak that starts, taking a valtrex makes it disappear within minutes, like half hour or so and it goes away.

Outbreaks also seem to appear when I drink, during the night after coming home or waking up in the morning....

Obviously this is not something I want to happen...if on a date or something, waking up with that or the fear the outbreak might start that day is worrying...

So can I take valtrex BEFORE a night out of drinking, to prevent outbreaks from starting in the first place?

How often can I do that? Might it make my body more herpes resistant to take the meds on and off for no reason even if there is no outbreak? 

I would do this maybe a couple of times a month, maybe 500 mg per times I drink.