Sure there is. You just have to change your Power Settings. Assuming it has Windows 7 on it (that's why you're here, right?) you just need to do the following:
1. Click Start orb
2. In Search box, type "Change what closing the lid does", hit Enter
3. Change the option to Do nothing under Plugged In (I assume it will be powered)
Hope this helps!