Yes and sometimes, students will come in late or misbehave simply to get attention (much like children do at times - any attention, bad or good, is desired). By promoting positive attention and letting the students know they are valued as people and not just a warm body filling a seat, they will be more willing to put forth effort in their studies. They will often want to please you as an instructor and will not want to disappoint you.