You could do worse than to confuse the meanings of "code" and "cipher"—even cryptographers sometime use the terms as though they had the same meaning. There is, however, a definite distinction between ...
Possibly, the earliest known cryptogram (or substitution cipher) is the Caesar Cipher, supposed to have been used by Julius Caesar. Possibly, the earliest known cryptogram (or substitution cipher) is ...