Question: is nagato a good guy?
Answer: Nagato never really turned evil, a more accurate word would be twisted. After witness the death of one of his closest friends, Yahiko, his view of the world changed dramatically. He dropped all of his moral values but his main goal in life stuck, the pursuit of peace.