Could having heartburn mean I am pregnant?

Yes. Heartburn is a common symptom in pregnancy, but it is a common health problem for nonpregnant women as well. The easiest way to answer this question is for you to do an over the counter pregnancy test available at any pharmacy.
No. If you think you may be pregnant, you really need to take a urine pregnancy test that you can purchase at any drugstore or see a doctor.