This is more of a general doubt that came to my mind after reading something online. Just wanted to understand if its possible. Curious to know what others think.
Honestly this is a question better taken to a good reproductive medicine clinic, they can explain options clearly. Everyone's situation is different so general answers wont help much.
This really depends on the person's anatomy and what surgeries were done, so a fertility specialist is the right one to answer it properly. There are options like surrogacy and preserved eggs or sperm too.