This is one of the techniques I use on puppies or adults to stop jumping.
When training, like everything else you must be consistent.
Don't give attention when they jump because you are reinforcing the behaviour.
Any dog, young or old, can be taught.
I got this training from a book called "The Puppy of Your Dreams in 5 Steps : https://amzn.to/3oB8nV4