Can nausea be confused with heartburn?

I keep feeling really nauseas and have heartburn. I've took gaviscon to help my heartburn and it kinda helps my nausea too. Can I be confusing nausea for heartburn?