Eeeh, I highly doubt it. It's not machines ruling over us that we should fear, rather the ones already in power using machines to make their control more absolute.
Why though? Why is it logical to think the human race is awful. There's nothing objective about it, even "logic" itself is not something that exists naturally in nature, it's a human invention. So a machine that would 'logically' conclude the human race is awful will do so based on the logic of the person or people that made it in the first place. And yeah, there are plenty people out there (including the most powerful amongst us) that think humanity is awful.
So again, it's not the machines that need to be feared, but the people that wield them against us.
Pretty much this.
The way I see it, the dystopia we are potentially barreling towards is not that of terminator, but a cyberpunk one.