General Sound Question

Is there a program where I can plug headphones in and listen to song in them, but have something else like a movie playing through the speakers on the Mactop?