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 one classify Herpes based on the area in which it develops?
Can I give blood if I have herpes?
Is Herpes an Autoimmune disorder?
Could I be unaware that I have Herpes?
What is the difference between Cold Sores and Impetigo?
I have Herpes, what is the risk of contracting another sexually transmitted infection?