Yes, by filing a revocation statement with consent from shareholders holding more than half the shares.
The constraint is what comes after: the company generally cannot re-elect S status for five years without IRS consent. Treat it as a one-way door rather than something to toggle.
We handle this for founders running US companies.