Does eliminating bread lose weight?

Does eliminating bread and pasta help you lose weight