Yup allow kitty to scratch on something good.
The key is that it's good from the cat's point of view.
In my experience, Whatever they scratch on should be really solid meaning when they press into it they feel secure. A cat tree or large cat scratching post that's placed against a wall will usually do the trick. Placing cat nip on the object you want them to scratch on can sometimes be helpful.
Repellents (get one for cats in a pet store) are great for discouraging your cat from scratching in particular places.
Double sided tape and other sticky materials and tin foil are normally objects that cats hate so placing them on areas you want the cat to avoid is often a good idea.
Hope that may help and good luck!