The company that hired me as an independent contractor didn't get paid. Should I expect payment?
Some contracts pay at the end of a project; but if I were you, I would require more frequent payment.
Regardless, if you provided the services that the contract specified you would and/or that you were directed to provide, you are owed the amount agreed upon. It is immaterial whether the company through which you worked was paid or not.