Is there a way to set my computer to not shut off when I close the lid?

I want my iTunes to continue to play even when its closed.


-c.