Yes, if your country has a shitty electoral system, has no checks and balances, rule of law, and is highly corrupt
which is just realistic. if a country is 100% perfect run by perfect AIs, then that sort of thing is possible cause of very few risk