Not quite, the Glock was designed from the ground up as a military weapon for the Austrian Army's planned procurement to replace their World War II-era Walther P38 handguns.
Point taken, but I would counter by saying that you are referring to the original Glock 17.
The modular design of the Glock means that the slides and barrels and magazines can easily be shortened (while still being mostly interchangeable) without any impact on the gun's reliability. This lends itself to models such as the 19 and 26 which are specifically designed from the factory for concealed carry. The same cannot be said about the 1911.