There are two scenarios, Firstly: if childbirth will cause bodily harm, it is permissible to disable the reproductive system even if this is permanent in order to alleviate the harm. Secondly: it is permissible to temporarily disable the reproductive system, even if childbirth does not cause any bodily harm. However, if this involves prohibited exposing or touching of the body then it is not permissible except if there is a conventional necessity that requires this.