Is notice used to mean the same thing in the next two sentences?

You didn't give me enough notice.

A notice of sale.
the same meaning