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

How does this shirt fit?

The small shirt doesn't fit me, so I'll buy the medium size.
the same meaning