You will have to research your state's particular laws covering this. I am not at all certain that a currently lawfully wedded spouse, can surrender their interests in a will regardless of whatever "financial" agreement may have been reached on other matters.
In some jurisdictions, a spouse who has waived their financial rights in a settlement agreement may still have legal grounds to challenge a will that excludes them, depending on the circumstances and laws in that jurisdiction. It's advisable to seek legal advice to understand the specific rights and options available in that situation.