I'm fairly sure, yes, although it's been awhile since I've played, well, any Sonic game other than Mania.
Interesting idea. Didn't Knuckles have some sort of wall-based spindash in Sonic Advance (one of them, not sure which)? Seems like a pretty viable solution to the problem, though. If you can't re-glide after the move, there'd be some strategy to using it since it'll put Knuckles at a bit of a disadvantage without solid ground, but you get to move further upward than Knuckles could by simply climbing. Not to mention making climbing shortcuts more viable for Time Trials and the like.
Maybe it could be a move where Knuckles vaults forward with his arms, putting him in the "spring" animation to make it a little more risky (you couldn't sail into enemies with it) and establish that Knuckles can't go back into a glide afterward? Or it could just put him into a running animation so you could still hop backwards off the wall. That'd probably make for some interesting jumps, although that'd remove a bit of risk without a way to prevent the player from turning right around and gliding again.
I guess it just goes to show even simple additions add a lot of variables.