There are several articles about procedural level generation by indie developer Pierre Viguiere.
In February 2020, Ilio-Cosmin Oniscu, Senior Level Designer at MachineGames, published a text on his blog on the Medium platform about the criteria to consider when determining the degree of freedom in a level.
Developer Billy Brandstetter in his blog described the process of creating a level generator for his own game: the algorithm sequentially generates new rooms and connects them to the rest.
I don’t think that your idea of making a long chain of rooms is difficult but think about whether it will be interesting for players to go through it again and again? Players will know in advance that there is only one entrance and one exit in the room.