I very much doubt this would be allowed, unless there was exceptional circumstances.
If you are self-funding it may not be so much of a problem. But if you have a studentship or research council funding, I would imagine it's impossible. If you have a problem with your supervisor, the department will assign a new one.
The only time I have heard of people doing this is when the supervisor leaves and takes his/her PhD student with them.