Work Experience Over Grades?

I did quite crummy in one of my programming classes (C-). I’m planning on taking on jobs (hopefully IT) throughout the years. Will my job experience matter more than a bad grade to companies like Booz Allen or Deloitte?

Thanks.