Intelligence is correlated with brain size, not just in humans, but also between species. No physical law prevents us from building the equivalent to a house sized brain. Perhaps not even a moon-sized brain. The only real limit seems to be mass (we don't want the whole thing collapse under its own weight) and signal delay due to the speed of light.