As long as the requirements are met, you can fill the remaining slots with a specific type of building as long as the slots and materials to build it are. The slots are your somewhat hard limit, though tech, officers and buildings in some cases can expand them to an extent.