No, you cannot get by herpes from sharing a hot tub with someone who has herpes, however the infection can be transmitted by sexual contact whilst in a hot tub.
Keep in mind, the herpes virus is very fragile and highly sensitive to environmental conditions. As such, it cannot survive for long periods of time outside the body such as in treated water.
Related posts:
I don’t have any symptoms of herpes, therefore I don’t have herpes.
Can a herpes virus migrate to other areas of the body?
Can you get herpes from sharing a towel?
What vitamins or alternative treatments are best to take when one has Herpes?
How does one contract Herpes (HSV-1- HSV-2)?
Is Herpes an Autoimmune disorder?