If you only isolate that single passage, yes, if you read the entire 1 John, this:
1 Yahanan /John 2:3-7, “And by this we know that we know Him, if we guard His commands. The one who says, “I know Him,” and does not guard His commands, is a liar, and the truth is not in him. But whoever guards...