Do carbs matter when in a calorie deficit?

So this has been something I’ve been struggling with for the last year…I find it difficult to make food without adding some sort of carb like rice or pasta. Should i be limiting my intake or cutting it out completely or just incorporate it so long as it fits in my calorie daily intake?