in principle, i don't see why it wouldn't work.
you would probably have to apply some logic on your site, so that, for the pizza example, toppings couldn't be added when there was no base, but if the building process was done sytematically, i would think it should work