Yes bloating causes your body to weight just a bit more.
When your body is bloated you're experiencing water retention and that extra water retention causes you to weigh a few extra pounds in weight.
However you don't weigh significantly more when bloated than you do when not bloated but you do have some extra lbs.
I once weighed myself when I was bloated and I weighed an extra 2 lbs when bloated.
Then when the bloating went away I weighed 2 lbs less.
So the bloating was a temporary cause of weight gain even though it was only 2 lbs.
So when you're not bloated then the extra weight will go away.