Openings matter but not as much as people seem to think.
If you play openings well you get a nice position to launch your middlegame. A game of chess must still be played.
Some openings have traps that win on the spot and these tend to get youtube videos. All opening traps have a rating expiration beyond which they no longer work. Thus, traps are only a good idea if they're supported by solid play, that is if your opponent doesn't fall into the trap you're still in a good position.
Another way in which the opening is critically important is setting the tone and direction of the middle game. Advanced Caro Kann and Open Sicilian are both respected openings, but they are completely different in character and plans. Players should chose openings where they understand the middlegame plans.
I am probably not worthy of talking, but I believe that you must know how the pieces move, then what checkmate and stalemate is, you should then learn why
1. e4 is good and how it controls the center. You should learn the first few moves of the ruy Lopez or 4 knights. If someone does lets say, the 4 move checkmate on you, then learn how to defend it. Once you are more advanced, start learning an opening that interests you, but probably not something like all variations of the Sicilian
e4 is not good. e4 is unsupported. Per strategy.
You cant learn win in 4 moves per strategy...thats not the point.
You either learn strategy or you dont...there are almost all GMs dont know what it is...but it is well defined.