I assume you have been invited for a landing interview. In this case, no they will not keep your passport. They will just examine it to verify identity and give it back to you with the COPR
If you are going out of Canada via air, you will have to wait for the PR card. If going to US by land...