Braiiinssss
It does raise some interesting questions, as there have been many instances of people who've suffered a severe brain injury to recover physically, but to suffer from memory loss and/or personality change.
So it would suggest that restoring brain function this way would not restore/maintain personality.