It is unlikely that a spayed female cat will spray indoors. Spaying removes the uterus and ovaries, eliminating hormonal cycles and the urge to spray. Spay early; if spraying has already started, the behavior may persist. Provide a clean litter box, a stress-free environment, and access to food, water, and vertical spaces to deter spraying.