Does "party" mean the same thing in these two sentences?

The party of the first part.

The green party took 12% of the vote.
different meanings