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’ve never had herpes but I noticed my daughter/son has just developed a cold sore. How is this poss...
Can a herpes virus migrate to other areas of the body?
How does one contract Herpes (HSV-1- HSV-2)?
Can stress trigger an outbreak of herpes?
Can you get herpes from sitting on a toilet seat?
I have Herpes, what is the risk of contracting another sexually transmitted infection?