Leaving uSA after H1 Extension


MY h1 Visa expired on 31st May 2012 and I got the extension approved n 24th July 2012. The form I797 has not yet reached me. Can I leave US now? I have receipt for teh extension application. At the deaprting port will there be any pbm?