Does word "chance" have the same meaning in the following two sentences?

You take a chance when you let her drive.

We had the chance to meet the president last week.
different meanings