Debatable, we simply know that Haki is the reason why Law cannot use
his fruit to screw around with two Yonko (like teleport them into the sea or switch their souls with some nearby fodder for a cheap shot).
So the question is, is Haki the reason for just Law's fruit not working or just flat out all devil fruit effects in general?
If Foxy attempts to hit Linlin with a Noro Beam, could she just flex her Haki and shrug it off? Can Kaido escape from being a toy slave after being touched by Suger via Haki hax?
I have no idea. It probably all simply depends on what Oda decides sounds coolest at the time.
Besides, Kuma can actually get around this with only a little creativity.
If in the hypothetical scenario that he cannot simply pimp slap someone like Linlin into the ocean then he can just teleport a suitably large chunk of rock to hit Linlin and have the rock be teleported (along with Linlin) into the ocean.
Either way, Kuma's homemade, patented Bitch Slap of Doom is still an ultimate dick move to this day regardless of the Haki argument.
Fear the bear.