NoSoul8 Technically, yes, the principle is similar. But of course you'll have to make some changes in the code.
In the simplest scenario you can create square/rectangular scenes of the same size. And then generate your map by filling a grid (say, 5x4) with random scenes.
However, completely random scenes may not work very well in a TDS game, for example you don't want a road in one scene to be blocked by a wall in an adjacent scene.
So another fairly easy solution is to build several random scenes for each portion of the map:
.
I am planning to make another version of this Level Generator template for top-down view games - for generating dungeons, terrains, racing tracks. But I don't know when will I have time to do this..