Doing so is extremely risky without having ample supplies and a high enough skill point rating in engineering, and that's not counting other armies interfering in your plans. To get your own settlements in Mount And Blade 2 Bannerlord, the most direct way will be to lay siege to a town or castle.