Ovarian cyst

Can having an ovarian cyst prevent you from getting pregnant? Or will it just make it harder?