In short- yes. Foreigners are allowed to take a loan if you they into one of the categories - Work in Thailand, Hold Thai PR, Married to a Thai or have dual citizenship including a Thai citizenship.