so is it safe to do queries in separate thread with connection from main thread?

I know I cant use one connection object for two queries running in the same time from two different threads.