1. You could be checked applying for H1B. While waiting for the check, you shouldn't reenter US, otherwise your H1B might be denied.
2. There is a very slim chance your H1B could be denied for whatever reason.
A safer way is to get Advance Parole first, then go to Canada for H1B visa.