This is one of those cases where an oil primer will work best. After you have primed the wood, you will see places where caulk is needed, usually between the shoe molding and the baseboard, the recessed panels of a door, door jams, and window casings.You can use latex paint, if you wish, a good enamel is best. Enamel dries harder and will be more durable.