I agree with the others about the need to seal the wood but you may also want to consider using something other than pine because it's both porous and has a strong grain pattern that's hard to hide under paint. For a fairly cheap althernative try poplar which takes paint very well and is readily available everywhere including the home centers. Then seal, sand and paint for great results.