Can I still masterbate with genital herpes?

I don't want herpes whitlow or any spread of it. So, um, what should I do?