Yes, but they are an 'in-process' form of code generation. The distinction is important. Especially when you are extending the system on the fly.
A lot of the pain regarding JS build-systems could be avoided with macros (and reader macros/a customizable reader). Babel is literally macros + a reader.