Yes. If the LC you used for 140 had been pending for more than 1 year, you are fine. Those who almost use up 6 year H1B should not apply PERM to invalid old pending RIR, your case is a good example.