Could a cerebral aneurysm be caused by a head injury?

Possibly. Depends on the degree of trauma and the location. If you have a real concern, talk to your doctor.