frankly speaking, its a yes/no type of question. In general its always recommended not to travel in case of h1B is in process. In case of exceptional cases, you have to take a risk. no other choice. Be careful that during your return journey don't keep the POE to some specific locations such as Chicago, SFO etc., there the checking might be always risky.