Yes, an estranged child is still entitled to your inheritance, but their entitlement could be smaller, compared to a child who remained close to you. Also, you can leave an inheritance for your child in a testamentary trust.