Is this normal?

I’m 39 weeks and I’ve been having bad heartburn and been so nauseous and sometimes a small headache. Is this normal? It feels like I’m in my first trimester