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

Having people round for dinner was always quite an occasion at our house.

It was needed only on special occasions.
the same meaning