If you also file I-140, you need to wait for both conditions meet: 1. I485 pending for over 180 days. 2. I140 approved. Otherwise you will in trouble.