Does "ensure" mean the same thing in these two sentences?

This nest egg will ensure a nice retirement for us.

The circumstances ensured that he would arrive in time.
the same meaning