It can hurt the dog and rarely works
A knee to the chest can bruise muscle or even crack a rib on a smaller or younger dog, yet most dogs just bounce back for more. The force reads as rough play, not a clear 'stop' โ so you risk an injury and still don't end the jumping.