Of course he can. Almost everything Eggman builds ends up foiled by someone from Sonic's circle, and Shadow is more capable than most.
Shadow and Eggman have a complicated relationship anyway, since Eggman's grandfather created Shadow in the first place. That history does not stop them clashing repeatedly, and Shadow generally comes out on top.