Correct.. the gdpr isn't the anti cookie law. It's the data privacy law.
If it wasn't cookies it would be something else.