Would acid and metal make carbon dioxide?

No. Acid will generally react with metal to produce hydrogen. In order to produce carbon dioxide, and acid must react with a carbonate.