Babies are "hardwired" to breastfeed.
That means that they should be able to latch within the first hour after birth. But many variables can affect that. A preemie, or a "late term" infant (35-37 weeks) may need a little extra time. The best way to get a great start is to get the baby to breast within an hour after delivery and ask for help if you need it!