I have high BP ,I go to the gym alot

Patient: I have high BP ,I go to the gym alot , do bench presses , cardio and weights. I have been told by a doctor to stop going to the gym because i have high BP . Is it necessary for me to avoid gym ?

Doctor: