While any duration of breastfeeding is beneficial for both the mother and the baby, the World Health Organization (WHO) recommends exclusive breastfeeding for the first six months of a baby's life, followed by continued breastfeeding alongside complementary foods for up to two years or beyond. Therefore, three months of breastfeeding may not meet the full recommended duration, but it can still provide important health benefits to the baby.