As a friend, yes. A good one, in fact.
The two have a relationship built on friction. Knuckles is earnest, easily deceived, and fiercely protective of the Master Emerald, while Sonic is flippant and enjoys needling him. That produces a lot of squabbling, and quite a few outright fights when Knuckles has been convinced, usually by Eggman, that Sonic is the problem.
But the antagonism never runs deep. When it matters, Knuckles shows up, and Sonic trusts him completely. Their bickering is closer to the way old friends argue than genuine hostility, and both of them drop it the instant a real threat appears.
So they fight, they complain about each other, and they are still good friends. That is the whole dynamic.