Cyst??

When having a cyst does it hurt when you have sex? I just experienced the worse pain during sex I’m wondering if it’s from a cyst