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

An occasion arranged to honor the president.

There was no occasion for complaint.
different meanings