This depends. Housing cost if you're considering the price of owning a home is not part of CPI for the same reason that stocks are not a part of CPI, that being they are considered assets.
If you talking about specifically renting housing, then correct(in US).
If you talking about specifically renting housing, then correct(in US).