Yes, but only if the machine you are using has a safety switch, meaning that it will only produce ice until the tray is full. Some models also have time to schedule operation, making them ideal for ice production overnight. But you must also consider how fast the ice maker works and the storage capacity. Letting the machine work overnight may not be productive if the machine is not refrigerated.