Ovarian cyst

If you have a cyst on your ovary can you still ovulate and get pregnant ?