It probably is more or less true with all firearms. The higher the exit velocity of the powder gasses, the louder the boom. With cannons, however, shorter barrels tend to have larger bores (for the same scale, at least) and a larger bore requires a larger charge to produce the same amount of boom.