Probably depends on the gun design.
I've heard of 1911s going from semi- to full-auto when someone has futzed with the sear -- but that's not really a slam fire.
A friend's 1911 slam-fired recently. But that was because a hobby gunsmith firend of put in a slightly longer firing pin.... It protruded just enough to fire a round when it cycled.
My Luger slam fired and then went full auto once, after it had come back from the gunsmith. The disconnect "dowel" a small spring loaded metal piece that's supposed to slide inward after each shot, as the gun cycles, didn't. When the gun cycled, it stayed stiffly in place and activated the trigger.
That experience almost had me changing my pants.