I had ovarian cysts can I have a child, and if so what can I do?

Probably. It is not abnormal to have ovarian cysts. Every woman has an ovarian cyst about 2 centimeters in diameter at the time of ovulation - after ovulation the cyst may grow to the size of a softball, and is still perfectly normal. If you don't have ovarian cysts, you do not ovulate and you could not get pregnant.
Lots of types cysts. There are lots of different types of ovarian cysts--some that come and go on their own, some that are associated with hormone imbalances likes polycystic ovary syndrome, others that grow, and others that may even be cancer. So it depends. Ask your doctor to explain to you what type you had and how it affects your fertility.