Is it ok to put formula in the refrigerator after its been sitting out?

Maria

My hubby and I had to travel this morning and I made 2 bottles of powdered formula for our son. One bottle is already finished and the other I didn't have to use so it's been sitting in my purse with a top covered.