That seems to be an older version float sensor. Test it out first to make sure it's reacting when you manually move the float up and down.

Yes, you can cut the cable and re-wire it if you are comfortable doing that.