Short term right move? Yes, of course!
Long term right move? Well, it could turn into one gigantic propaganda win for the commies down the road if athletes from another country gets busted en masse in Rio. Let's say several ethiopians, or kenyans, or americans, or jamaicans, or a couple of national teams in some team sport for that matter. That would put Putin in a position to rightfully call the rest of the world and the IAAF especillay for hypocrites.
So basically the IOC and the IAAF have backed themselves into a corner where absolutely no new doping scandal in Rio can be allowed to tarnish the sport further, giving themselves a really bad motive to cover up any big busts.