Tips. Youâre not entirely at the mercy of Californiaâs community property laws if you receive an inheritance while you're married. A postnuptial agreement can override the law. If your spouse agrees that the inheritance is yours alone, no matter what you do with it, you can both sign an agreement to that effect. In the event of a divorce, the court will usually honor it.