Exactly!! Having each different part be different colours essentially breaks the code into larger "tokens" which is much easier to read than letting your eyes get lost in a sea of uniformity.
It's not about knowing which colour is variables and which colour is functions. It's about there being some contrast between them.