There's always a lead time. But the pace at which prefabricated items can be built in a factory is significantly greater than that at which items can be site built. The constraints on an urban site are a significant logistical problem - site fabrication requires lots of different trades arriving through city traffic at the same time because there isn't much space in which materials may be staged. Every trade adds to the traffic through which other trades must transport their materials.
Conversely, prefabricated units can be built virtually anywhere and shipped economically over long distances...i.e. fabrication can occur at a factory in a rural location and assemblies can be moved by rail or barge.