Yes it will throw a code (trouble code 15, "intake air temp sensor shorted to supply voltage or open") and the engine light will show up on the dash when you are riding.
I tore my air box apart the other day and slapped it back on in a hurry, jumped on the bike and rode the .5mi to work and seen the light, got home that evening and check the codes, bamm it was the IAT sensor, took off the air box, seen it unplugged, plugged it in, all well.