Swimming any place where there are men and women, and you get close to the opposite gender and you are exposed to seeing their body swimming is not permissible. Yes, if you go to a secluded part of the lake such that you are not close to the opposite gender and you won’t be seeing their body while swimming then it’s ok