Yes. Thats close. Another way to see it, though, is about the eyes.
The eyes are high on the body. Being up to them means you are covered in it. So high it even fills your own mouth.
Another, even, is that you use your eyes to see. Up to your eyes in shit means that you can only see shit (or bullshit).
Many words have many such dual-meanings and analogies.