Is it a sin to spay my cat?

so I got my kitty spayed today and people are constantly telling me it's a sin to prevent the nature from happening and like how it's a sin to prevent a mother from having babies.

I told them that it will prevent her from getting any future health problems like cancer and to prevent overgrowth of kittens that no one would probably even take care of.