Modular buildings are very good overall but not widely used. The pros are that they are essentially factory built so quality control and efficiency is high, they are environmentally friendly because of the factory build efficiencies and reduced shipping of materials to the sites, and they are cost effective.
Although they require far less people to build (i.e. significantly less jobs needed) so in urban unionized areas the unions hate them.