No, he was elected mostly because Bush allowed a 4 year bogus and perpetual PR effort portraying him as the worst president ever go for the most part unchallenged.
That and McCain never went for the jugular on him.
But even Hilary never went for the jugular. Why? I think we know - they didn’t want to be portrayed as racist.
So you think if Nobama was a regular white guy he would have been elected?