Taking metformin with food may also help with these gastrointestinal symptoms. Metformin (prescribed to treat type 2 diabetes) can cause excessive gas and bloating, heartburn, headaches, a cough, muscle pain and a metallic taste in the mouth, but these side effects typically ease after a few weeks.
So basically, the answer is yes.