They are definitely right.
There are two possibilities.
a) Trump is right and several million people are voting illegally. That's a flawed democracy.
b) Trump is wrong and the highest elected official is trying to delegitimize the electoral process. Also a flawed democracy.