Would an error code protect against it if both accounts exist? if the account doesn't exist then the transfer wouldn't go through.
Even if a transfer doesn't go through, that transfer might be stuck pending for hours or days before being reverted, if we're talking about bank transfers.