Yes, that's what it means, and that is a common way to say that. You can also say. ' I must have (misheard you / misunderstood what you said) ' .
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
It also probably can be explained as folows:
It was wrongly heard can also mean that the other person had not said anything in the given context at all.