This is poor information.. IF a cat stops using the litter box and starts eliminating elsewhere that means there is a problem. Either 1. The litter box is too dirty, clean it or 2. the animal has a medical problem; most likely urinary crystals/infection/etc, kidney problems or something else. What you should do if your cat starts peeing in places they shouldn't is take them to the vet, not kick them outside. Male cats especially are prone to urinary issues, if you're going to own one (and I own two) you need to know what to look for, not only to save your stuff or your carpet but to keep your cat healthy.
Theres so much bad info floating around on cats; "they need to be declawed or else everything in your house will be distroyed" "they'll pee on your stuff JUST to spite you" "theres never nice cats they all bite/scratch". None of that is true at all.