Is the word "rig" used in the same way in the following two sentences?

Rig an election.

Rig prices.
different meanings