Yes it would. Whether before or during the marriage, any inheritance or gift that a spouse receives remains that spouse's seperate property. That having been said, just be sure to keep any money inherited seperate from marital funds.