Let's say your map is almost full but with the right D6 roll you could place one specific room only. Can you take your turn and if you can't place that room can you still place a monster or loot down?
You must both 1) place a room, and 2) place a monster/loot. If you roll the dice then cannot do either of these steps (or you choose not to), then that's the end of the game.