Migration Assistant between two Macs: Yosemite and El Capitan
Yes. Quite possible.

The only difficulty would be if one of the users on each machine is 'the same person'.
It will not merge accounts, it will make new accounts for each migrated user.