Yes.
Skill and athletic traits do not exist in isolation.
Size in general is an advantage in basketball. However, mechanically, all skills of basketball generally become more difficult as you get bigger. It is more difficult to move from standing to full speed if you are bigger, more difficult to jump quickly, more difficult to move laterally if you are bigger and heavier. When dribbling, the ball has to go further, more opportunity for steals and mis-dribbling.
So, yes, if Shaq the brain was shorter and the exact same skill level, he wouldn't be a hall of famer. But you can't isolate that into a bubble. If he were shorter, he might also be lighter, quicker lift, quicker lateral movement, better handle...hard to know. The inverse is also true, ie, "if only earl boykins were 1 foot taller!" Well, Boykins made up for being short with good skills. But if he were taller, he would be heavier, and maybe his handle is just a titch worse, maybe he loses a half second of straight acceleration, maybe he loses a lateral step...suddenly instead of an ok NBA career based on skill, he's a D-league average sized guy.
There is a reason there aren't bunches of 7'2 300 lb guys averaging 20/10 with 4 titles for a decade. Not because there aren't other big people, but it takes incredible athleticism to do what shaq did with that body.