Yes, a codicil can be valid even if no attorney prepared it. However, it still must be executed (that is, signed) according to the laws of your state, the same way a will would be executed.  In most states, this means there must have been 2 witnesses to the signing.