Don't think dust will be an issue once the gap is covered and everything is painted. But if that is really a concern for you, you could caulk just before putting the molding in place. I say just before, so the caulk will not inhibit the molding from setting flush.