This is 100% correct. The purpose of NIF is more or less to test nukes without testing nukes. The energy production bit is 90% greenwashing, 10% truth, because you can learn some useful physics (depending on what they release).
There are WAY better ways, cheaper too, to do research for laser-fusion energy production. One of these, the High-Average-Power Laser (HAPL) program, has been defunded by Congress and more or less disowned by the Dept. of Energy for the last 2 years, because they're owned by weapons interests and the institutional inertia of magnetic fusion.
HAPL differs in that it was cost-effective, had a roadmap to a demo power plant, and focused on things that are actually useful for energy production: repetition rates of 5+ Hz (NIF is hours), direct ignition designs and mass-production pellet fuel that don't require messy gold hohlraums, and KrF lasers instead of glass ones that produce deeper (more effective) UV light directly.
Look it up: http://www-ferp.ucsd.edu/HAPL/
Yes, I was somewhat involved, and more than a little sad that this cheap ($40M/yr) program got sidelined, though we haven't given up yet.