You’re going to get different answers, depending on the advisor you ask, and the state you’re in. Generally, though, best practice is yes, and sometimes required.

PS – If you’re keeping this a secret from your spouse, then an S Election is not your biggest problem.