I think that's good and correct. The inheritor hasn't had any capital gain. Because the deceased never sold, they didn't either.
E.g. if I win a car in a contest or get paid in stock for working, I have to pay income tax on the current value when I receive it.