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:
How does one contract Herpes (HSV-1- HSV-2)?
I’ve never had herpes but I noticed my daughter/son has just developed a cold sore. How is this poss...
Can stress trigger an outbreak of herpes?
Could I be unaware that I have Herpes?
What is the difference between Cold Sores and Impetigo?
Can a herpes virus migrate to other areas of the body?