Yes, actually it is highly recommended to keep both the H1B and the adjustment of status together, just in case one might fail. Once you receive your Green card, then you can give up on the H1B.