I'd be more concerned that it was manufactured correctly.
A close friend once bought a new Marlin Mag boltgun, from a dealer - that we had trouble zeroing the scope we mounted in the receiver grooves.
At first it looked like it was the scope's fault - not enough windage adjustment available.
It turned out, though,that the receiver grooves had been machined into the receiver at a very slight angle to the bore - enough to throw the zero several feet to one side at 50 yards.
Rimfires use lead bullets. A worst-case scenerio would call for a thorough bore scrubbing - provided the bore wasn't ringed (bulged) or rusty.
Generaly, if a rifle's not abused on the outside, the inside should be in about the same condition.
For centerfires - If the rifling's all there, especially in the throat (just ahead of the chamber) and the muzzle/crown's OK - I'd be good to go. (the same rust caveat applies, though)