Does the word "stick" have the same definition in the next two sentences?

A stick of wood.

The recipe calls for half a stick of butter.
different meanings