Not true, the visa is with immigration, nothing to do with tax residence.
Tax residence have their own tax residency rules, they have a 180 day rule in Thailand, less in other countries. If you are over 180 days in a tax year you are tax resident in thailand and subject to Thai tax laws for income accrued in or remitted to Thailand, according to the tax department.