Is it okay to close my laptop during Folding@Home? Does that ruin the process?

Does it still work in the background when the computer is idle but closed?