No, you do not have to tell HMRC if you inherit money. After a death, the deceased’s executor or administrator will pay any tax owed by the deceased or their estate.
If you inherit money you do not need to tell HMRC but you will need to report any income or dividends that you receive in each tax year.