Committing the yarn.lock File with Specified Versions in package.json?

Is it a good practice to consistently commit the yarn.lock file, considering that all versions are specified in package.json and there is no chance that someone doesn’t have the same version?

To be honest, I think it just wastes my time, mostly because of the conflicts that occur.