Is it good for SEO to change slug when the title of the article changes?

I have the following view of url:{slug}-{id}

If I change the title of the article, the bullet also changes so that there is no disagreement.

Note that the article is searched by ID, that is, there will be no 404 error.