Yes. All foreigners have to do this when travelling to Thailand. Even if you have a long stay visa or any visa of any sort, you have to do it every time before you enter Thailand.
Even if you live in Thailand and just fly out for a meeting to Malaysia and you are out the country for just six hours, you have to do it before you enter Thailand.
You have to go online however to do the TDAC. It will be a simple online form you will complete.
NO uploading of documents.
You do this in the three days before you depart. You will instantaneously get an email with a QR code. Print it and take it with you to show at immigration.