Can a male undergo surgery to have a female reproductive system?
It's possible but complicated.
Sex reassignment surgery for male-to-female involves reshaping the male organs into a form that looks like and functions as much as possible like female organs.
However, trans women do not have ovaries or uteri.
Thus, they are unable to bear children or menstruate until a uterus transplant is performed, and they must remain on hormone therapy to maintain their female hormonal status.