@Ade *******
yeah mate , any non Thai has to do it regardless of the visa type.
You can do it a few days before. Incase you forget they also have little stations at the airport you can do it when you land. If you donโt have it an que up to immigration they will turn you around to the back of the line