Yes, in the Sound settings, you can select which applications should use the headphones as the audio output.