There's no reason to avoid buying groceries with a credit card that offers cashback or other rewards on that spend. However, it may make sense to avoid putting groceries on a card that offers little to no rewards on grocery spending. That's why it's important to make sure you have the right cards for each expense.