In general, yes. Earlier this year, the Supreme Court ruled that states can punish and replace "faithless electors" who cast votes that differ from their state's popular vote.
Yes they can — and have, multiple times — because of the Electoral College. President Trump lost the popular vote in 2016, for instance.
Inauguration Day is Wednesday, Jan. 20.