Depending on how the inheritance is structured, yes. For example, my mom had some money in an account that was transferable on death to me. The day she died, that money became mine, and open to levies, etc, if I had any judgments against me (I didn’t) (or owed child support but that doesn’t factor in here…), Her life insurance was payable to me and my sister and as soon as I deposited that check, it could have been seized. But the stuff she had in a trust remains in the trust. I don’t own it, I just manage it, so it wouldn’t be able to be seized.
Edit to add: another example - my house with only my name on the title can be liened with a judgment against me. My parents’ house, owned by the trust, cant, because the trust doesn’t owe the debt.