It's important to remember that horses are living beings, and using a whip can be harmful if it's not done properly. A skilled rider uses a whip as a tool for communication and gentle encouragement, not as a punishment.
If you're interested in learning more about riding horses, I recommend talking to a certified riding instructor. They can teach you the best practices for working with horses and ensure the safety of both you and the horse.