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

Can cause shortness of breath.

There was no shortness of money.
the same meaning