To a point.
If the crackdown still happens as OTL, the DHS still coordinates it as OTL, and that news comes out at approximately the same time as OTL then Occupy is going to hate him like radioactive poison. Obama already didn't have many fans, mostly of the "he let us down" variety, in Occupy as-is. If he visits, gives the impression he's on the movement's side, and then the feds do their crackdown as OTL then he's going to come out looking like a two-faced opportunist. Even if the truth of the matter is other elements acting without his knowledge (I highly doubt that) that would if anything make him look worse by making it look like he is not in control of his own government.
Don't forget Obama letdown was a big factor in the Occupy movement happening in the first place. Obama looking like he's playing them will go over even worse in the movement though odds are that won't hurt his re-election chances. What it will do is reduce the number of Occupiers who went into party politics and electoral activism after the last camps were broken up and funnel more into direct action.