An entry hazard is any battlefield effect that affects the opponent's Pokémon as they are sent out of their Poké Ball. Any Pokémon already on the battlefield when these effects begin will be unaffected.
According to that, no, Pokemon that were ungrounded when they were sent out but have been grounded by Smack Down or Thousand Arrows will not be affected by entry hazards.
Source