H4 EAD filing when H4 Ext. is pending and I-94 is expired

Can I file first time H4 EAD application when my current I-94 is expired and H1B Ext. and H4Ext. are pending? H4 Ext. was filed before I-94 expiry.

H4 EAD can be filed while H1B or H4 extension is pending. Write H1B pending receipt number on i765 form.