Ovarian Cyst

So I’ve been TTC for a year now, and i just found out i have ovarian cysts but I’m getting them removed. Could that be why i wasn’t getting pregnant?

When they’re removed do you think I’ll be able to get pregnant once they’re gone?