An undercoat is like a blank canvas. Most people paint the walls white as an undercoat because anything you paint over it will cover it up.
Also if you are painting large areas, check that the walls are smooth and don't need plastering because you notice bumps more on walls when they are painted.