If you are going to have it when you apply for an Extension married to Thai, it was valid at immigration not older than a week. But it is probably best to ask at your immigration.
But as I understand and was told by my Thai wife! all Thai citizens should be registered in some Blue House Book somewhere in Thailand. But you can never be completely sure 😅😅