H1 processing and cap-gap

Hi, My h1b is processing (for FY 2019). I got an RFE in july 2018. My company responded and USCIS received the reply on july 20th 2018. My status says " Response To USCIS' Request For Evidence Was Received" since then. My STEM opt expires oct 5th 2018. Can i continue to work on cap-gap if my h1b is processing past Oct 5th ?