Anonymous participant no, do it all when you get here. A girl on this group did it at the airport before she took off and when she landed, on the same day, they asked for her entry stamp, which matched up. If she had have done it the day before, they'd probably have rejected her.
The ask:thailand community, consisting of multiple Q/A groups with over 100,000 members, powers this platform. It is not an official government resource. Our members actively contribute to this resource, and while we strive for accuracy, we cannot guarantee its complete reliability. Assistance to travelers is provided as a community service.