Can my baby use two different formulas?p

Is it wrong that my baby switches back and forth between formulas? I can never find enough of his formula in stock at stores and at daycare they have some they can use for babies but it isnt the kind he takes at home…will it hurt him?