Politicians change their minds like everyone else. And accusations of flip-flopping are often thought to be a boon for opposing candidates during heated debates.
However, depending on certain factors, changing stances can actually help a candidate. But it also depends on what political party both voter and politician belong to.