Should Learn How to Invest in the Stock Market or Not?

Is it important for beginners to focus on learning how to invest in the stock market before actually investing, or is that learning part is just overhyped?