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

To my immense gratification he arrived on time.

Dull repetitious work gives no gratification.
the same meaning