On more than one occasion. On one playthrough of Black (a Nuzlocke), I used the Petilil in Nacrene City I traded for a Cottonee. And in White 2 (a Monotype), I traded Petilil for Cottonee, because the Prankster ability is good.
And in my SoulSilver Ground Monotype that i'm doing for the Ultimate, i'm using Rocky, the Onix you get in Violet City for a Bellsprout (I needed a third Pokémon at the time, but that boosted EXP helps because of how pitiful training in HGSS is).