hazard said:
But cic website says that I can travel to US and st Pierre miquelon if I have valid work permit and re enter canada
I have no direct experience of this, so what I say below is based on information I've read in CIC literature.
As you point out, if your work permit is still valid, it should be okay, as long as you don't go anywhere besides the US.
Obviously though, you're taking a risk, because if you're not allowed back in, your whole inland application will be lost and you'll have to apply outland. It's a matter of evaluating how realistic the risk of refusal is.
Here is what Section 23.1 of Manual OP11 says. (This applies to applications for a TRV overseas, but presumably the same considerations would be taken into account by a border officer at a port of entry.)
Visa officers should verify by checking FOSS or CAIPS whether or not approval in principle (AIP—
first stage "approval in principle") has been granted on the in-Canada application.
If AIP has been granted (that is, the applicant meets the requirements of the class but is awaiting
screening on admissibility), and:
• there are no serious admissibility or eligibility concerns;
• there is no reason to think the applicant is likely to fall out of status during the finalization of
their application for PR within Canada; and
• it appears likely that the applicant will become a permanent resident during their authorized
stay in Canada (including any extensions) and would not stay in Canada illegally [i.e., meets
R179(b)];
then, if satisfied of the above, the visa officer should issue a TRV.
So if there is nothing at all that you think would be a particular problem for you (convictions, etc.), the risk of refusal seems low.
Personally, though, just for a weekend in the US, I wouldn't do it, because I'd prefer the peace of mind of not taking that small risk.