Mechanically? Yes, I'd trust a Glock out of the box. The more important question, have you fired a Glock before? I would run a few boxes of range ammo through them, and a mag or two of your preferred carry ammo, just to be safe. I carry a 27, and it has not failed, ever. It's a Glock. Growing up with 1911s and CZs, it did take some getting used to. Even if you are familiar with the brand, it's always a good idea to thoroughly function check any new (or new to you) firearm that may save your life.
Congrats on two of the finest, by the way. Enjoy!
Caught somewhere in time.
"The freedom to own and carry the weapon of your choice is a natural, fundamental, and inalienable human, individual, civil, and Constitutional right-- subject neither to the democratic process nor to arguments grounded in social utility."
L. Neil Smith