Yes, if you actually received the money. You would receive a 1099-R from the 401k plan administrator, which will report everything you need in the boxes.
If the funds were transferred to another qualified plan (such as an IRA), then there wouldn't be any taxes due on it (again, unless you withdrew funds)