Hmmmmmmmm.
Depends on the make/model gun (how tough is it, generally?) and how well it tests out. Is that a primo specimen?
Has to be handled on a case-by-case basis.
One detail that may help: with *most* semi-autos, the firing pin is a user-replacable part that's not very expensive and requires no "fitting". On most revolvers, it's a complete royal pain in the tushie to swap, often requiring a gunsmith. Sometimes a GOOD gunsmith, if it's a frame-mounted type. *Generally*, the worst thing dry-firing does is bust a firing pin. (Good news: across all models/makes, frame-mounted wheelgun firing pins are much tougher than hammer-mounted.)
In a few cases, you might have reason to plan a firing pin swap right off the bat. CZ52 firing pins are notoriously weak and I personally would always swap to aftermarket. Series 70 or prior classic 1911s get a mild safety boost from Titanium firing pins, which ain't that pricey. Gonna swap anyways? Then don't sweat it.
Rugers can generally take "unlimited" dry-firing. The amount they'll get at a dealer isn't enough to worry about at all.