Yes, you don’t even need to win. You can flee, too.
It’s only a 10%.
Make sure your pachirisu actually has Pickup and not Run Away.
It can’t be holding an item already, too
edit: i would like to apologize for speeding incorrect info! I stated this because i thought, from experience, this was the case, but I must've misremembered. i still believe fleeing counts in some games, but please assume i'm wrong until proven otherwise