In fact, we highly recommend you do both. The extension will ensure you remain in status while the transfer can always be processed at any time. However, the USCIS may require an approval of the extension if the transfer is not adjudicated prior to the expiration of your current H-1B period. Premium processing is recommended.