Is molding enough to cover gap?

Because of the dryness the past few years, we’ve had some settling in our basement that has created a gap between the outside wall and the ceiling. It’s only a tiny gap, and I thought crown molding would cover it, but a contractor suggested we need foundation work.