It's a good practice to fill imperfections or knots in the wood with wood filler or putty before applying wood glue. Sand the surface smooth after the filler has dried, and then proceed with priming and painting.