yes, i've check it.. it is depends on the race of the worker.
If you allow the Peasant to build Necropolises, it will build by repairing.
If you allow the Acolyte to build Town Hall, it will build by Summon.
If you allow the Peon to build Town Hall, it will build by get in to the structure.
i don't know about night elf