While you can sand down and repair minor damage to MDF, any significant swelling or warping will likely require you to replace the affected piece entirely.