Yes! You are right, it depends on the context. “I got you” can either mean “I understand you” or “I found you(doing something wrong)”. This phrase can also mean “I got your back”, Im here for you, I can help you, I can do that favor for you...
Hope you understood! And I’m glad to help