Does medicine you take effect the baby?

Jessica
For instance I still take diciegis at 26w is there any long term effects that could effect the baby? My midwife told me you can take it through the whole pregnancy but just want other people's experiences.