How to Paint New Drywall and Sheetrock

A friend of mine told me that there is a limit on how long you can wait, to paint dry wall, after installing it. What is this time limit.