Yes. If you applied to extend your work permit before your initial work permit expires, you can keep working, even if your SIN is expired.
You can apply to renew your SIN as soon as you get a new permit.
Renewing your SIN
When you get your new permit, you can renew your SIN at the nearest Service Canada location.