Yes, performing online sessions of hypnosis work just as well as doing them offline. The only difference is that it requires a reliable internet connection.
For some people, doing online sessions might be more comfortable as they do not have to meet someone in person and might feel more safe and comfortable. Also, during online hypnosis, you do not need to activate your camera if you do not want to, which is another advantage.
However, some other persons might prefer offline sessions. Both online and offline sessions work the same and have the same effects.