Exactly.
Imagine being born completely aware with no proper guidance and having no identity of who or what you are - that's terrifying and tragic all at once. Completely alone,
the only friend he knew/had was AiTwo, and she died. When he finally came to physically, all the scientists were doing was patting themselves on the back for succeeding in their experiment, not even acknowledging the fact that he's alive (and I don't mean ignoring, I mean not acknowledging that they created a fully self-aware sentient being that has emotions and a high intellect.) His "villainy" was justified in my opinion. If that's how you define villainy then I'm not gonna argue with that
Though I personally still don't consider him a villain. He's the villain of the movie I guess, though I prefer the term antagonist because "villain" has evil connotations, but is not a villain himself. If there were any villains in the movie, it would be the humans that brought him into the world.