No if you look closely they actually entered in each other's minds and cut off the snakes that were holding them, by that they cancelled the genjutsu from each other.
I think if it was one of them he wouldn't break the genjutsu by himself, or at least not in time.