Yes....relatively easy if you have some DIY skills.
You need to use a relay that the float switch tells the relay to either turn on or turn off an outlet. With most vertical float switches, changing normally ON to normally OFF simply requires you to flip the float around. With horizontal float switches, simply mounting 180 degrees changes ON/OFF.
Now if you wish to DIY, I show how to build a relay system
HERE.
For the float switch, most inexpensive float switches can not be submerged, so I'd suggest using CPVC pipe to hold the float switch and keep the back side dry. I show an example
HERE.