Pills?

Can you take gas pills while pregnant? I am so bloated I am in pain. Im 5 w 5d and feel like im 6 months along.