Can being gassy be a sign of pregnancy?

I know I get gassy when my period is on its way, but can it also be a sign of pregnancy?