It's not quite as simple as "it works like 'Lord of the Flies' or it doesn't". Nicholas Christakis, in his book "Blueprint", devotes a chapter to a database that he and his grad students made of shipwrecks, where the survivors lived long enough, in enough isolation, that they had to more or less put together a temporary society. There were lots of cases where they turned on each other, and lots of cases where they did not.
My review of Christakis' book, in case you're curious: https://www.goodreads.com/review/show/2851365787