Determination of Heirs

Can't you just specifacly stipulate heirs anyway you wish in your will or trust?