That really depends on a few factors:
- the role you’ve been playing
- what company you’ve been working for
- your educational background
- most importantly, the story you tell with your application
It is likely possible! I’ve met a few consultants at McKinsey who were previously in HR roles (including someone who moved internally from McKinsey HR a long time ago)