Yes, but you have to shred them first to help the worms and other microorganisms in the compost to decompose them. You may also soak the egg cartons with water and then place them in the pile. Both moisture and paper will surely delight the organisms in the compost.