If you did get married after 140 approved, it’s ok, you can still submit
485, and that’s called Follow to join. But if you got married before you
submit your 140, and you did not put your name in, that’s called cheat. The
visa offer might not find out, if they are very careless.
Eventually you will need to submit proof of marriage at the time of 485,
which will show a marriage date. If it’s caught, who knows what will happen
? You sure will get an interview, at least, if they want to give you another
chance.
As long as you are not the one applying for the I-140, it won’t affect your
status.
Ask a lawyer before you take further action if you are really worried.