This way is easier to prepare documents for immigration. If you married abroad, you have to take that document to translate to Thai and register in Amphur (District Office) with call Koh-Roh 22(คร.22).
After that you can apply for marriage visa in Thailand 🇹🇭