Your I-485 will be assigned an A# regardless your I-140 approval.
Your AXX XXX XXX (I-485) is the same as A0XX XXX XXX (I-140)
Your AXX XXX XXX (I-485) is the same as A0XX XXX XXX (I-140)