Yes, an undercoat helps to give the topcoat of paint a clean finish look while increasing its durability. Usually, the undercoat is used according to requirement, e.g., if you have cracks you can opt for putty, similarly once the repaired wall is sanded down to give it a clean finish a paint primer coat is used to give your walls a more uniform finish.