Many things in B4A are multithreaded. For example all the asynchronous SQL methods and all the network related methods.
Your code will run on the main thread. You can use the Threading library to run code on a different thread. In most cases it is a mistake as there are other, simpler and better solutions.