Sure, but playing a game you haven't bought is clearly illegal, there is no grey area there.
Of course, you could say exactly the same thing about Microsoft or Sony's hardware - the only difference is the Switch is more dated and its games run better on more devices.