Yes. I have both and carry the 23 most of the time. The .40 is more snappy and may take a little practice to get use to but once you do, it's no big deal. Some people don't like the way the .40 shoots so as someone else advised, see if you can rent one and run a few hundred rounds through one before you decide.
The 19 is no slouch. You'd be well armed with either one.