If your baby has a family history of celiac disease or if you suspect gluten sensitivity, it is recommended to consult a pediatrician before introducing pasta or any gluten-containing foods. They can provide guidance and suggest appropriate alternatives or testing if necessary.