There's nothing wrong with these terms, its just that in popular conversation, the "secret" code usage would be quite common. For instance I just googled "enigma machine documentary" and I've seen around twenty separate occurrences of "code" and only a single "cipher".