Yes in themes created in 2022 onwards you have access to .css variables to use in the Scripts & Styles .css editor.
Using .css variables cuts down human in error, especially if you are trying to remember exactly what the specific colour value is for your Primary / Secondary / Alternate style guide colour scheme or font stack in use.