Can your brain still function after having cardiac arrest?

Yes. Depends how long the brain was without oxygen - if the patient was immediately resuscitated, many of them recover completely.
It depends. It really boils down to how long the brain was deprived of adequate blood flow. This depends on how long till the heart started functioning again and how quickly good CPR was started. The longer the brain goes without oxygen the more chance of brain injury.