Yes, running out of time will give you a ‘bad ending’. Good work escaping the dream and finishing the game.