Yep, one can certainly do it. Not a sub-compact, though.
I'm surprised there's not more responses that just say:
"yup, glock 19"
(add purple if you're not a Glock fan)
^^^ This right here. ^^^Absolutely. For many years I had one semi-automatic handgun. A Springfield Loaded 1911, back when the Loaded was the top of the line, came with 8 round magazines, a bit of a mag funnel, adjustable night sights, etc. etc. It was my carry gun, my competition gun, and my range gun. It was not my home defense gun, as I used a carbine for that purpose while living in the country.