No,he betray the republic

If you watch starwars episode 3 you can see that anakin skywalker is turning to darth vader.If it's not because of him ,the empire wouldn't rise.I think he was never been a good guy.People who are inherently good wouldn't betray their best friend and betray the republic.But he has a lot of greed.