Simple answer is No, you can't undo a merge. The only thing we can do is create a new profile for one of them, review changes log to see profiles at the time of the merge and try to separate them, as much as possible. I have done it a couple of times, and it is a slow process, trying to make sure each person has the correct relatives, sources, biography.