you are correct of course, but that is to say a glock is Not Always cocked. it must be cocked by chambering a round or cycling the slide. Just a clarification is all.
That and it's not a single-action pistol. Like many other striker-fired guns, it uses a hybrid DA / SA "safe-action" which is basically that it's only about 65% (I think that's the number - I'd have to look it up again - it might be closer to 70%) "cocked" and when you pull the trigger, you're actually "cocking" the striker-pin the remainder of the way while at the same time moving the firing-pin channel safety out of the path of the firing pin.