For a single project, NPV and IRR will always give the same answer: if NPV is positive, IRR will be greater than the cost of capital, and if NPV is negative, IRR will be less than the cost of capital.
However, if you’re trying to rank several projects from best to worst, NPV and IRR may give different rankings.
A problem might occur if a project has irregular cash flows (regular would be an initial investment payments and then subsequent recoveries only). Then you might have multiple IRRs, some of which above, some below the cost of capital.