Upvote:2
Assuming that you are in Canada on a temporary residence visa (visitor visa) then the government pages say:
If you apply to extend your stay in Canada before the date youβre supposed to leave, you can legally remain in Canada until a decision is made on your application.
So you can stay until Canada decides to approve or not approve your visitor visa extension.
If your application to extend your stay is not approved then you need to leave Canada. Having a permanent residence application in progress does not grant you the right to stay in Canada. You should note that PR applications take a long time, and you may not be granted permission to stay the whole time until it is complete.