Retirement tax questions

does  a hardship withdrawl qualify for a code 2- early withdrawl (except Roth)?