Do I need to be able to swim to go sailing?

No, but you should wear a buoyancy aid suitable to your weight and abilities, correctly worn to give you the confidence to potentially capsize. You will find that the more waterborne activity you undertake the more you will be eager to learn to swim.