Am i allergic

Patient: Just started taking amocillion for an ear infection,day 2 and getting sererve headaches,am i allergic to penicillion,will doctor change medicine

Doctor: