The Bombe machines used to decipher Enigma are usually described as being electro-mechanical devices. Perhaps you could argue they were special-purpose computers of a sort, but definitely not the programmable, general-purpose machines most people think of when they hear the word "computer".
The first programmable electronic computer was developed at Bletchley Park, but it wasn't used to decipher Enigma.