Yup, which means that in cryptography, log2(∞) implies a purely theoretical key of infinite length.
Theoretical because actual keys are finite, and the unbounded infinite capacity of log2(∞) cannot be represented in binary or any number system, or even by the physical architecture of a classical computer.
Theoretically, a quantum computer could use such a function since it can in theory represent an infinite number of states.
In practise? I'd say nope.