No, Putin is doing it because it's politically advantageous and/or he enjoys sticking it to the US.
But Snowden is in Russia because the US kept him there while he was passing through (going so far as to force down the plane of the President of Bolivia on suspicion Snowden might be on board).