If the weather permits, then yes, it’s possible to swim in Greece in October. However, just because the weather may still be sunny and the seawater temperature high, this isn’t a given at all times.
To ensure you get the best possible weather conditions, plan your holiday earlier in the year, such as in July or August, during the peak season, or in September, when the weather’s still nice, but the crowds dwindle.