Formula water

I have been using tap water since day one my daughter is a week and three days old. Today I got told that tap water isnt good for them and that I should use distilled water. Well about a few hrs after her feed she threw it all up. And she never has done yet. Would the water be apart of the situation? First time mom.