The problem I see with many people is that they memorize tons of opening variations and then lose anyway because they don't understand the fundamental ideas behind them at all.
It would be better if you first learn the principles (control the center, develop your pieces, get your king to safety) and then pick two or three systems that suit you - for example, as White maybe just 1.e4 or 1.d4 with a clear plan, and as Black a solid response to that.
If you really understand the first 8-10 moves instead of just memorizing them, you'll much faster notice where your opponents are weak and can then improvise. Depth definitely beats breadth here.