yes, you can.
I must disagree with EricNeesGC.
rayman555, You can have two I-485 pending, as long as they are not in a same category and you paid proper fees for each.
In your case one I-485 will be based on I-130 and another on I-140.
At the time of your adjustment (of whatever I-485 comes first) you will withdraw the second application.