Yes. Hypnosis has been used for centuries, initially for pain relief. It is a genuine psychological therapy process whereby the hypnotist puts the client into a trance-like stage to make them more open to suggestibility.
A Hypnotherapist guides you into a deep sate of relaxation (a trace-like state) and when you are in this state, they can make suggestions designed to help you become more open to changing habits or behaviours.
If you’ve ever zoned out whilst driving the same way to work every day or when watching TV then you’ve been in a similar trance-like state.