It's true. You can write a script searching for a specific trait, that places certain buildings in all cities if the trait is present. These buildings can then be used as requirements for other buildings and units.