**Since, EVs affect the stats, and Power Trick switches the Pokemon's stats, technically yes.**

If you put 252 EVs in Defense, that would increase your Defense stat by 63 points, raising it to a hypothetical 614 from a stat of 551 with no EVs. Power Trick takes the value of 614 and switches it with its Attack value of, say, 22.

So now the Shuckle's attack would be 614, and the Shuckle's defense would be 22.

Source