Learning openings is good because it can fall enemys into traps, those are gambits, the openings can have a good position, like sicilian or Queens gambit, ig its to have a tactical idea to checkmate on the opening/midgame and endgame