why excel shows result "YES" when =if(B2>1,"YES","NO") and B2 cell is "word"

I expected the result to be error because Cell B2 was not a number, thx