The current registrar can delete a domain name between the time of requesting the transfer code (the code is valid for 7 days) and the new registrar launching/executing the transfer.
The transfer can still go through, but then it becomes a transfer from quarantine.