In both cases the answer is "Yes, with premium ammo." 9mm to some degree and .45 ACP in particular seem to lose expansion potential with the lower velocity of shorter barrels.
That's why you want premium grade ammo, designed to open at lower velocities. Federal HST, Hornady Critical Defense, Remington Golden Saber, Speer Gold Dot, and Winchester Ranger/PDX are all so designed. Pick from those and you should have no problem.