Yes. Zero-days are simply exploit attacks that nobody has seen before. The moment a zero-day attack occurs, the exploit that was utilized in the attack becomes a known exploit, and developers set about patching the vulnerability that was targeted by the zero-day.
Once a patch is issued in a software update, users with up-to-date software can’t be targeted by exploits that target the patched vulnerability.
Exploits are a lot more common than zero-days, and they’re still a huge problem online because so many users fail to update their software.