Is this normal?

I'm 17 weeks and for the past two days I have horrible gas pain that will not go away! It keeps me up at night. I'm hoping the baby is ok