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

The children acted out a comic piece to amuse the guests.

An important piece of the evidence.
different meanings