Using a waterproof cold sore patch or cream can provide some protection and reduce the risk of spreading the virus while swimming. However, it is still advisable to wait until the cold sore is healing or completely healed before swimming.