You may stay home or travel as long as 1) you do not work during the two month gap and 2)your H1b is pending.