I was wondering If GPU programming can work with more than one thread?

So could I have the OpenGL stuff running and use some AI stuff in another thread? Or would this cause problems?

You can issue OpenGL calls from multiple threads, so long as you bind a different context in each thread.

How well the GPU copes with that is a separate issue (and depends upon the GPU).