You may not even be able to enter Canada if you need to apply for rehabilitation. It all depends on your encounter with the CBSA officer and what, if anything, the officer knows about your background. While the PIL (Primary) officers may not `see' everything, if you are sent to Secondary Inspection, that would be a more thorough examination...obviously.