Even if you have had chickenpox you still carry the germ and can pass it on to others. Exposure to chickenpox does not cause shingles. You can get chickenpox more than once, although it is rare. I've had it twice (I'm special).
However, contact with a person with shingles or chickenpox cannot cause shingles.