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

The policy so far is all stick and no carrot.

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