Relevant costs are indeed costs that are directly relevant to a particular decision and are expected to differ between alternatives, affecting cash flows. On the other hand, irrelevant costs are those that do not impact cash flows, such as sunk costs.
It is not necessary to memorise cflow in detail, but understanding the components and how they relate to relevant and irrelevant costs is important for investment appraisal.