If the printer isn’t on/communicating, the print job will be left waiting in the spooler/print queue of the device attempting to print it… so if you turn off your PC/phone/whatever, the print job will be lost as it’ll be no longer in the local device’s queue.