@Mehdi ****
That depends on your bank, BoT guidelines tell banks on a tourist visa you should not have a Thai bank account.
It is up to individual banks if they want to follow these guidelines and what they do with existing accounts.
When you need for some reason your Thai bank account, just choose a visa to stay in Thailand and not a tourist visa.