A bit more info on the amp would be helpful.
I'm assuming it's an amp that has a headphone out socket, in which case it should be OK but might not sound brilliant.
If it's a valve head then, as Chris says above, it needs to be connected to either a cab or a dummy load.