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

The formation of crystals.

The formation of gas in the intestine.
the same meaning