That should work. There's usually a volume knob for headphones and sometimes you have to press a button to send the output to the headphones.
This DI box can be used in conjuction with 1/8"to 1/4" adapters.
This computer audio interface does the same thing without the need for the adapter (and the volume knob is handy).