Yes you can plug 2 different heads in, just remember that the resistance must be either 4 or 16 ohms.
What this does is that it will bassically split the cab in half, the head going into the left input with power the left speaker, and the head going into the right input will power the right speaker.