Yes,but if you don't do that, you're just wasting energy. The US realized that, which is why they added electricity generation to the N Reactor. Both were still designed to create plutonium, and would not be built without the aim of nuclear weapons.
It's like saying we grow the same corn for the edible part and for biomass. While technically true, the edible part is driving the production.