Yes, but you can only do this if your permit expired fewer than 90 days ago. You also need to restore your temporary status in Canada.
Since you need to apply to restore your status after it has expired, you can’t work while this application is in progress.
You can also apply your WP within Canada.