It is possible that medication can cause certain types of side effects. Seizures are one of them. I worked in Pharmacy for a long time, and a patient received a medication called cephalexin
(Anti-infective like an antibiotic if you will) anyway, she started experiencing seizures. When she was taking off the medication, a thorough exam by her physician was conducted. It was ruled , that she in fact suffered seizure related problems while on the med. However, you should always check with your doctor before stopping any prescribed drugs. It is a possibility and you should discuss this immediately.