On the basis you are currently maintaining B-1 or B-2 status in the U.S. and on the basis of an approved I-526 petition, you may file an I-485 application for conditional permanent residency in the U.S.with the Application for Advance Parole .
With the approval of the advance parole you may leave the US and return legally to the US before the approval of the conditional permanent residency.
With the adjustment of status, you can apply for advanced parole and employment authorization for the purpose of working and traveling before obtaining the green card (which allows you to do both). Yes, with the AP you could travel, but be aware you may need to be in the U.S. for interviews and other necessary appointments.