Yes, you can. Sandpaper will take paint off of metal and smooth out imperfections, but bear in mind coarse sandpaper can leave scratches in metal that are hard to remove.
When sanding metal, it’s best to use fine grit sandpaper, generally above a 220 grit.