Hi Paul,
If by masterbation you are referring to self stimulation, then the answer is no.
Herpes is a viral infection that is transmitted by direct contact with an infected person. Mutual masterbation with an infected person is a different story and this would clearly increase the risk of infection. Use this link to read a nice introduction about how the virus is transmitted.
Important:
We hope you find this general health information helpful. Please note however, that this Q&A is meant to support not replace the professional medical advice you receive from your doctor. No information in the Answers above is intended to diagnose or treat any condition. The views expressed in the Answers above belong to the individuals who posted them and do not necessarily reflect the views of Remedy Health Media. Remedy Health Media does not review or edit content posted by our community members, but reserves the right to remove any material it deems inappropriate.