If your hysterectomy leaves one or both of your ovaries unharmed, then the ovaries can continue to produce the hormone testosterone for up to 20 years (16).