Looking to lose weight and build muscle, is the significant presence of carbs in a diet a good idea? Ie, pasta or taters etc each day?

Love to hear some thoughts.