Largely yes. That is a risk of starting a war.
If an aggressor is defeated, the victor gets to make demands and set terms for ending hostilities.
And after that? How long can they keep taking?
And after that? How long can they keep taking?