its up to the owner, there are pros and cons or both spaying before a first heat and spaying after, i would recomend that you spay before her first heat which will depend on the breed/size, spaying before will make sure you have no unwanted litters, and you dont have to added hastle of keeping her safe