Not unless you want the entire space filled with hallways and rooms.
IMO:
- Generate grid X by X blocks
- Generate random obstacles inside the grid
- Pathfinder goes from A to B navigating around obstacles. → this would be your main path
- Randomly select blocks to spawn rooms from main path → check if the sides are not blocked
- Spawn instances of authored assets on each block with correct orientation.
They could just be prebuilt and assembled when populating. After the path has been generated, all you need to do is spawn and move to fill the path, literally like legos.
Your hallways can be made of row of instances, where you could swap one with door on either side or both to place a room.
You will need templates, for example: square rooms 1x1 or 2x2 blocks, large rooms 2x2 or 4x3 blocks, hallways 1x1 2x1 blocks, 1x1 corner hallways, etc, for after the check if there’s available space, place and assemble them along the path.