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

Prove a will.

The exception proves the rule.
different meanings