STM32L442 programming in production phase
The internal bootloader does not use an external crystal for UART programming anyway, so whether the MCU has a crystal connected or not will be irrelevant.
So yes, the programming over UART with the internal bootloader will work just as reliably without an external crystal.