Does the word "appointment" have the same definition in the next two sentences?

I'm leaving work early because I have a doctor's appointment.

He erred by the appointment of unsuitable men.
different meanings