Is this really how sex change surgery works?

Matthew comes in wanting to be changed into Melinda.

Jane comes in wanting to be changed into John.

The doctor looks at the one, and then the other, and then turns to Jane and says, "I think we've found a donor!"

Get the scalpels ready!

Is this really the way sex change surgery works?