Yes, it is permissible to spay or neuter an animal. Deliberate sterilization of a human being is not allowed, but, because man has stewardship of animals (who do not themselves have rights), it is possible for man to justly control the reproductive functions of animals.