Can I create an 'on the fly' labyrinth tilemap with the CCTMXLayer class?

The question is:
Can a set the size of the tilemap and what the tiles have as texture/sprite during the runtime?

If you know the format of the TMX files then I guess you could.