A genuinely good person is capable of doing bad things, equally a person who is considered as being bad, is capable of doing good things. It’s never clear cut and so often the perception of good and bad, in others, is quite subjective. Pain, hurt, addiction, poverty, economic deprivation, depression, desperation, war, exploitation and so on - can make the kindest person do “bad” things. But does that make them fundamentally bad? I don’t think it does.
Equally, you have narcissists or psychopaths who can mimic, to perfection, the act of being a really “good” person, and sustain that facade for a very long time, in order to accomplish their goals.
Human beings are not either just good or just bad. It’s not possible