H4 - H1B change of status travel

Hello, I am currently staying in US on H4 Visa and it will expire in 2019, I got my H1B filled this year with change of status from my employer and got selected in Lottery. Now i am waiting for the approval but I need to travel back to home country due to some personal issues. Can i travel outside US before my H1B get approve? Will it impact on my H1B approval?

Thanks for the your time.