Is my compressor supposed to hold air in the tank for a long period of time after it is turned off?

In theory, your compressor tank should be able to hold compressed air for an indefinite period of time when not in use. However, because of the numerous pipe fittings and connections to the compressor tank, it is not uncommon to lose a minimal amount of air from the tank over a period of time.