That's correct.
The National Firearms Act of 1934 specifies that a shotgun have a minimal barrel length of 18", a rifle minimal barrel length of 18", and an overall length of 26".
During the early 1960's, the law was amended to 16" minimum rifle barrel length to allow surplus M1 Carbines to be released for DCM sales.
HTH
John