Does the brain know who is at the origin of what in an imitative interaction?

Does the brain know who is at the origin of what in an imitative interaction?