Yes, code is in the scrabble dictionary

...and is worth 8 points by itself if you played it.

Code Definition

noun

A system of signals used to represent letters or numbers in transmitting messages.
A system of symbols and rules used to represent instructions to a computer; a computer program.
A system of symbols, letters, or words given certain arbitrary meanings, used for transmitting messages requiring secrecy or brevity.
A systematic collection of regulations and rules of procedure or conduct: a traffic code.
A systematically arranged and comprehensive collection of laws.

verb-intransitive

Computer Science To write or revise a computer program.
Genetics To specify the genetic code for an amino acid or a polypeptide.
Slang To go into cardiac arrest.

verb-transitive

To convert (a message, for example) into code.
To systematize and arrange (laws and regulations) into a code.

verb

To specify the genetic code .
To put in or into the form or symbols of a code.