I visit Canada while my application for a permanent resident visa is still in process?

Yes. However, you must have a bona fide reason to stay temporarily in Canada.