Can I go swimming 6 months post lobectomy?

Hi I am 6 months post right upper lobectomy, can I go swimming in the indoor pools safely?