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

He sacrificed a piece to get a strategic advantage.

He needed a piece of granite.
different meanings