22.(2) An intention by a foreign national to become a permanent resident does not preclude them from becoming a temporary resident if the officer is satisfied that they will leave Canada by the end of the period authorized for their stay.
http://www.canlii.org/ca/sta/i-2.5/sec22.html