Probably but it's not quite that easy. First, Campy and Shimano what? If you're not changing number of speeds, and if your crankset is a double, and if you're not mixing chainrings, then you can probably go either way. If any one or more of these variables don't match you may have a problem, either a small problem or a big problem. You really need to offer more information.
Al