Yes, but only for a short time. Head lice will die of dehydration after 12-24 hours. Nits are very unlikely to fall off the head, less likely hatch, and extremely unlikely to survive long enough to get back on the head.

Run your pillow cases through the dryer on high for 30 to 60 minutes to kill any lice or nits.