This depends on the situation. Newborns often lose weight in the first few days after birth and usually regain their birth weight after 10-14 days. Experts recommend feeding at least every three hours until the baby returns to their birth weight. This means you may need to wake the baby for feeding occasionally, especially if the baby has lost more than 10% of their birth weight. Once your baby has regained their birth weight, there is no need to wake them up specifically for feeding; you can feed them when they are awake.
Also, remember that preterm babies need to be fed more frequently than full-term babies, and each feeding session may take a bit longer.