Even easier than that is to fill the hole with wooden toothpicks and a little wood glue. White glue will work in a pinch. When the glue is dry, trim the toothpicks flush and reinstall the door.