While the sanding will likely remove the harsh look of the scratches, you are likely to be left with a dulled surface where you sanded. A trim restoration product may bring that up, and blend reasonable well when the whole trim is treated, but as the product wears, Im guessing it will be an area that will draw your eye quite quickly, as it probably will never be quite right.

Have you a picture of the trim in question?