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

It will pay to wait.

You'll pay for this opinion later.
different meanings