This nest egg will ensure a nice retirement for us.
The circumstances ensured a good outcome for him.
Does the word "ensure" mean the same thing in the above two sentences?
the same meaning