The short, uncomplicated answer is yes, they have a right to be compensated for all hours worked.  Practically speaking, though, if the company has no money to pay a potential judgment for failure to pay wages and there are no other legally responsible parties, they won't be able to enforce that right.