The transfer will still be successful if this happens. 


However, the services on your domain may not be operational until the transfer/renewal finalises. 


We do not recommend transferring domains less than a week or two before expiry.