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

A head of cauliflower.

A head of lettuce.
the same meaning