No interest in sex woman 9 months after baby Surgery-Related Factors, surgery can directly affect sexual function. Factors that help predict a patient s sexual function after surgery include.