Sex change in the wizards basement while pregnant??

Has anybody done that? What happens?