No, those polls weren't flawed. Hillary won the popular vote by ~3 million, so the polls were accurate in that sense.
The only reason Trump won in 2016 was because black voters and Bernie Sanders supporters in several states that normally vote Democrat didn't show up to vote for Hillary. There...