Yes.
That's what Power Swap does:
Power Swap switches any changes to the user's Attack stat and Special Attack stat with any changes to the target's Attack stat and Special Attack stat. The stat stage changes provided by Power Swap may be Baton Passed.
If you used Shell Smash with a Contrary Shuckle you would get a drop to your Attacks and a boost to your defenses, meaning that if you were to use Power Swap on that shuckle you would only get its Attack and SpA drops.
Source