'Set Input Game Only' cancels out the setting of 'Set Input Game and UI'?

I have just checked to see if it is ignoring the nodes onward from the ‘Add to Viewport’ by placing a print string. But I found it doesn’t ignore them, it still prints the string every time.