Does a craniotomy for treatment of unruptured aneurysm affect cognitive function?

Does a craniotomy for treatment of unruptured aneurysm affect cognitive function?