Meditation can be a solution for racing thoughts and overthinking problems to some extent. However, the essential questions of life cannot be suppressed even with meditation and without answering them human inquisitiveness cannot be fulfilled.
Here I have explained in detail in my response to this post: