No, not any name. For example the surnames leading with 'Na' and then location, indicate they are from noble bloodline, descending from that city. Thais cannot change their surname to that.
The last time I was home I legally changed my surname to Na Ayutthaya.
You should see their faces at immigration.