No, purchasing real estate in Thailand does not automatically grant you a residence permit. However, investing in real estate can be used as a condition for obtaining long-term visas under programs such as Thailand Elite or LTR (Long-Term Resident). To obtain such visas, you must make significant investments in real estate or other assets and meet other conditions.