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:
Can using a Condom protect me from getting Herpes?
What are the “Prodromal Symptoms” (early warning signs) of Herpes?
Can I give blood if I have herpes?
I’ve never had herpes but I noticed my daughter/son has just developed a cold sore. How is this poss...
Can one have a test for Genital Herpes?
Can stress trigger an outbreak of herpes?