Yes, there is a cap on how many people your settlement can support.
Raising it comes down to building enough housing and keeping your peasants happy enough to move in.