Breast-feeding question

I’m doing my second baby soon and I’m planning on breast-feeding. With my first I formula fed. And as a newborn I was told to feed him every three., Even throughout the middle of the night. I’m just wondering, is it the same thing for breastfeeding?