Is boiled tap water safe?

I ran out of bottled water and my husband’s 2 jobs shut down and we have no money 😭 and almost running out of formula and don’t get more till the 13th. So stressed out bc of the virus and all that’s happening, is it safe if i boil tap water for a long time then use it for baby’s formula? My baby is almost 9m