Both are sanding and painting an M.D.F. can be possible. All you need is to start by sanding and finish by painting. Thus, you’re allowed to achieve a smooth and classic surface.