Maybe is, maybe isn't.
How long was the marriage?
how long since divorced?
What have you done either before or after your marriage to plan for your own eventual retirement needs?
How old are you? Were you married more than 10 years? If so have you remarried?
What was your plan if he dropped dead or was in a coma tomorrow and COULDN'T pay you?
Was this agreement incorporated into a divorce decree?