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

Sugar loaf.

A loaf of cheese.
the same meaning