Yes, but you have to get the H1 visa to come back and your AP application may be denied due to your leaving US before it is approved.