like I said, depends, different places will have different rules, and again Samui will do on a tourist visa, I can’t answer for other places as you need paperwork that may or may not be possible to get.
Like some immigration places won’t give you a residence certificate unless on a long term visa. Other places the DLT will accept a residence certificate but won’t accept the tourist visa.
You have to go and find out for yourself in the location you’re in.
I can only answer for where I am and how it worked here.
Getting the licence here is worth doing. You need to have the TM30, certificate of residence, medical, and take copies of all and your licence and used passport pages to the Department of Land and Transport to get the licence.
In Phuket it’s a 6 week wait, in Samui you can do same day in under 2 hours as long as you have all the correct papers.