Travelling to Canada while H1B Extension in progress ...H1B visa and I-94 Expiring on after 3 months


My current H1B Visa and I-94 expiring on 30 November 2017 and my H1B extension is in progress. I am planning to visit Canada (have a visa for Canada) for 2 days in September and return.

Can I travel to Canada with affecting my H1B Extension process??