Yup, if it uses a self contained cartridge and drives a projectile with an explosion it's considered a 'firearm' at the federal level. No self contained cartridge but an explosion, or no explosion (say, compressed air) and it isn't, at the federal level at least.

