You do not have to retain an attorney. Legal representation is not required for any portion of the Social Security Disability application process or the appeal to the Administrative Law Judge (ALJ).
However, retaining an attorney at the beginning of your claims process could increase your chances of prevailing at the beginning of the process.