Yes. You can send a letter to USCIS withdrawing your application for COS to H-4. Make sure your employer timely files for the extension of your H-1B though.