In cryptographic terms, ciphers and codes are distinct and precisely defined things, as explained previously. In casual conversation though the words are often used somewhat interchangeably, and "in code" can just as well be used to refer to a message written in cipher or otherwise encrypted. The word "code" is very heavily overloaded with meanings, and context is usually the best indicator of precisely what is meant.