Yes, it’s absolutely fine. Breastfeeding is an all-purpose mothering tool that both feeds and comforts babies, sometimes both at once. There’s no reason to worry about why breastfeeding calms your baby — whether it’s because of the milk or because of the comfort of sucking. It doesn’t really matter. The end result is the same: a happier baby and a calmer household.