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

He visited during my absence.

Absence makes the heart grow fonder.
different meanings