That's correct.
The magazine has to be designed for that firearm, so it wouldn't be an aftermarket cartridge magazine. When the firearm is designed originally, the cartridge magazine that goes with that firearm has to be capable of holding more than five cartridges.