If a property is inherited and the inheritor has and still intends to live in said property, does the capital gains tax still apply?

The property has been the inheritors principal residence for many years.