If you're susceptible to that effect then presoaking will help, but susceptibility depends on your individual microbiome. Some vegans use the liquid that chickpeas were cooked in as an egg substitute ("aquafaba"). I personally drain the liquid off after cooking, and don't notice any problems.