That is a reasonable analysis. But look at it another way: you go into a store with a friend and you don't know he has a gun and he pulls out the gun and robs the store. You don't think you could be charged as an accessory? I think the relationship between intent and complicity is a little more complicated than you've described.