exercises with ovarian cyst?

Can I exercise while I have a painful ovarian cyst? My husband had thought I pulled something until I told him what's been going on, now he is freaked out about me exercising. I will be using weights. . . just don't want to cause any harm. Thank you!!