Yes
You can work and stay legaly in US using your EAD card till its expiration, If GC is still pending, you can apply for its renewal. In the unlikely event of denial of GC, EAD too gets withdrawn and you may have to leave.
But, don't worry you will get approval.