A scratched CD can sometimes still work, but it is not guaranteed. It depends on how deep and where the scratches are. Surface scuffs often do not matter, while deep scratches across the data side can cause read errors.
Try gently wiping the disc with a soft, dry cloth from the center straight outward. If that does not help, a proper disc-repair kit or professional resurfacing may do the trick.