@Namfon ********
Categorically , no. I live in Thailand and asked immigration if I can convert my OA visa to an O visa. To get an O visa for marriage you have to leave Thailand and go to another country. Make an appointment at the Thai embassy before you go.