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

An inventory may be necessary to see if anything is missing.

They held an inventory every month.
the same meaning