Formula at goodwill?

I bought sealed unexpired babu formula at goodwill. It was my daughters usual brand. Anyway less than an hour after her last bottle of the day (it was only 1/3 out of the Goodwill batch as I was in between cans) she threw up all night. Could it be a coincidence? Or maybe they stored it in a non temperature controlled area? Idk, I'm scared to use it again, but I also hate to waste a whole can of formula if it's unrelated.

Her cousin also threw up all night, but she ran a fever and my daughter did not, so I thought it may or may not be a bug going around. (She hasn't seen her cousin since Fri. this occurred Mon. night) What would you do?