Is the word "fit" used in the same way in the following two sentences?

How does this shirt fit?

If I lose a few kilos, the gorgeous wedding dress might fit me.
the same meaning