You obviously didn't see the film about Alan Turing...
They (at least the code breakers) were aware that keeping the operation secret was priority #1, many soldiers died not because they couldn't be saved but because it would compromise the operation.