I want to hide the nail head in some molding that I am installing.

Use a nail set to sink the nail head into the molding. Then you can fill the hole with a spackling compound, sand it smooth and paint it.