Is there a link between heartburn and gas?

Heartburn and gas often occur together, but one does not cause the other.