Yes it is right to do that. Sterilizing the dog - or as it's known, neutering - is one of the most responsible things which any owner can do. Neutering is a gender neutral term. Gender specific terms are spaying in females (surgical removal of the uterus and ovaries) and castration in males (surgical removal of the testicles).
It's highly recommended by pretty much any vet, and also by more or less all dog behaviorists, down to the multiple benefits it brings. Benefits of castrating a male dog are:-
- testosterone is no longer produced, so there are reduced levels of aggression, especially dominance aggressive behavior
- due to lower levels of aggression, the dog will be typically better behaved, especially around other animals including other dogs, and around people, especially children. It's for that reason you're also less likely to have problems with the dog possibly being deemed a 'dangerous dog'.
- it prevents them from scent marking the environment - in other words your home - with urine, as dogs do in the wild to scent mark territory. The more that an owner tries to clean the smell off things in their home, the more the dog will continue to do it, in order to put the smell back.
- it prevents humping behaviors.
- it prevents certain health problems from developing. Once a male dog has been castrated, they absolutely cannot develop testicular cancer, and they're far less likely to get prostate cancer, so especially important if someone owns a dog which is prone to cancer as a breed, such as a Boxer, Labrador retriever or pug.
- it stops them from straying to find a mate, which could mean they can end up lost, or could more easily be stolen or end up hurt from possibly being hit by traffic.
Also know that some people are sometimes reluctant to get their pets neutered, because there are some myths which people falsely believe in. These are:-
- a dog should have or father a litter of puppies first, There is no medical reason why a male dog needs to sire a litter of puppies before being castrated. Also, if someone has puppies, they're adding to the problem of overpopulation.
- neutering makes a dog fat. Overfeeding and not exercising the dog enough is what causes obesity, not neutering.
- it changes their behavior. To some extent, true, but for the better, as I mentioned before. A dog's temperament depends largely on how they're raised as a puppy more than anything else,
- neutering is painful and risky. Vets will give the dog anesthetic so they will be asleep during the whole operation, and they are given adequate pain relief too. While any operation carries some risks, it's safer for a younger animal to undergo the procedure than in older dogs.
- their pet is an indoor animal, they won't parent babies, so neutering isn't needed. It's to stop health problems, not just to prevent unwanted litters of puppies. Plus it's still a risk if a pet out by accident.
- neutering is too expensive. While it may cost quite a bit to have it done (about £100 for a male to be castrated and about £150 for a female to be spayed), it's a lot cheaper than the cost of dealing with the problems which can arise if it's not done.
Hope this helps.