Can you have a successful pregnancy and healthy baby if you have epilepsy?

I just found out at age 30 that I have epilepsy, and I am taking meds for it. I am wanting to try to have a baby is that a good idea or not?