Yes, code generation tools are very relevant and useful.
Obviously they can't generate everything but they can help a lot.
With tools like Telosys or JHipster you can save many days of workload, especially at the beginning of the project with their bootstraping features.