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

Pay attention.

He paid off the loan three months early.
different meanings