Going by my definition he wasn't. His goal was understandable and the best way to achieve total peace, if it wouldn't been for the whole Zetsus thing.
However, his way to accomplish it was messed up. Does the end justify his means ? That's debatable...