This might be a stupid question buuuuuut…

I saw a post for milksicles where you can freeze breastmilk into a popsicle and let a teething baby chew around on it. Ok my dumb question is can I do the same thing with formula? My daughter has a milk allergy and I wasn't able to breastfeed but she's hardcore teething and we need something to ease the pain