Assuming you are using valve heads (!), yes you can run two heads into a stereo cab (assuming of course the speakers are adequately rated).
The stereo cab is two separate sets of speaker/s in one box.
It is always advisable with valve heads to match the output impedance of the amp to that of the load (cab).
What I would NOT advise doing is running two heads into one cab.