Is it OK to ask for deferral of graduate school admission because one has failed courses to make up?
I suppose it's okay to ask.  But since graduate admission is generally contingent on successful completion of your undergraduate degree, I think it's much more likely that the graduate institution will rescind your admission.  You would need to make a fresh application in the next admission cycle, with no guarantee of acceptance, and the failed course would tend to weaken your application.