Only dynamic mics, which are relatively rare and seldom encountered without an attached preamp. The vast majority of mics for PCs are condensers and electrets.
Anything can be a speaker, briefly and only once, if you apply enough voltage to it...
Like another post mentioned, dynamic mics like the Shure SM58 mentioned here, can drive a cable directly or through a small built-in transformer. They're still used in live sound, though condensers have become quite common there too. Condensers still tend to have somewhat better behavior, such as signal-to-noise, than electrets.
Of course everything has to be amplified or fed to a digitizer at some point. The issue is where the preamp needs to be physically located.
These can be run in reverse as well, it requires CB custom electronics so it’s not something a lay person can do out of the box.
But you probsbly think about smaller form mics like found on headsets (Electrets).
We could do the reverse too, plug a microphone into the speaker jack and hear sounds coming out from it.
Same interchangeability with solar panels, transformers, thermoelectric devices, etc. The effect might be big or small, depending on the setup, but the physics is happening either way.
I’ve spent time lost in space thinking about how much stuff is really just a copper wire in various configurations.
Have a copper wire - it’s an antenna, magnet, inductor, fuse, thermometer, heater, and strain gauge.
Put another copper wire near it - it’s a capacitor.
Curl one more than the other - it’s a transformer.
Put iron on it - it’s a thermocouple.
Put electricity through it - it’s a peltier cooler.
Add salt water - it’s a battery.
Put electricity through it - the iron is now a permanent magnet.
Wave the permanent magnet near it - it’s a generator and a microphone.
Put electricity through it again - it’s a motor and a speaker.
Heat it up and it’ll make Cuprous Oxide - it’s a solar panel and a diode.
Put electricity into it - it’s an LED.
I hear what you did there