Yes, under the right conditions. A garrison will give up if it's badly outnumbered, or if you keep the siege going long enough — around 30 days — that they run out of food.
Starving a castle out is slower than storming it but costs you far fewer troops, which makes it the better option when your army is small or you'd rather not risk your best units.