No,
But after filed I-485, you can stay legally before I485 has result.
your status should be AOS (Adjust of Status)
If I485 get rejected, you have to leave USA at once,
you can not change to other status at that time,
That's why most people keep other status during I485 pending, such as H1,H4