Is alimony a punishment for a divorcing spouse withdrawing the income stream from a marriage?

Is it a mechanism to allow the recipient to live in “the style to which she (or he) has become accustomed”?