The I-526 petition does not provide legal status to the petitioner while the application is spending; so, if you wish to remain in the U.S., you should maintain you current status until you receive your Employment Authorization Document about three months after your I0526 petition is approved,