Dry-firing any gun can break the firing pin, it's a mechanical device and using it wears it out.
However imx you only need to worry if you have a gun with a goofy firing pin that has a cutout in it for a firing pin safety, the SIG-Sauers with the stainless slides being the main example I can think of.
Now I'm sure I'm going to get loads of responses from people saying they've dry-fired their SIG-Sauers until they broke their fingers without trouble. Good for you, I've broken several firing pins in them.
The one gun I had where I endlessly broke the firing pin was a Beretta 92F, but that had to do with dry-firing it a lot.
I've certainly broken a lot of CZs and copies of them over the years. The one that was really goofy was the JSL Spitfire, track down one of those and break it, I dare you.
It's like hunting the big five in Africa.
I've broken the firing pin and/or slide stop pin on all of the following types of CZ:
CZ-75 (an original one, not the B model, in fact I broke the slide stop pin three times);
Tanfoglio (I've lost track frankly);
Sphinx AT-2000 (the slide stop pin has an insert, so those don't break but I bust the firing pin);
JSL Spitfire (yes, I broke one, find someone who even shot one);
IMI Jericho (which thankfully wasn't mine, it was a dealer demo gun);
And then there are the enormous number of Tanfoglio parts guns (which includes the Jericho), such as the EAA Witness, Springfield Armory P9, etc.
Haven't bust an Armalite AR-24 yet though.
The moral of this story is; if you are worried about breaking your gun, invest in spare parts... firing pins don't cost much. If you can't get spare parts for your gun, then your gun has now become a collector's item.