Hi there! Yes, to remove things from a suitcase or shopping bag (as in “unpacking groceries”) is the literal meaning.
It is also used as a figure of speech. For example, if I told you a long, complicated story about a difficult situation in my life, you might respond, “Wow. That is a lot to unpack!” This means that there is much to consider.
I hope that helps!