You can file both together (if EB1/EB2 or if EB3 with current PD). Or I-140 first and I-485 later. Up to you.