Please contact your attorney with specific travel questions, so that they can advise on the legal strategy for your case. Generally:
If you are in a non-immigrant status (ex: F-1, O-1, TN, E-3, J-1, etc.), you will not be able to travel internationally from when the I-485 is filed to when the advance parole (AP) is issued, which could be several months.
If you are in a dual intent status (ex: H or L), you may travel internationally and re-enter the U.S. in valid H or L status even while the I-485 is pending.