It won’t. At all. Not in the least.
You certainly don’t want to get a reputation as a scofflaw, but an occasional Tardy isn’t going to hurt you. (Yet it does seem odd to give a detention merely for being late. Does your school ALWAYS do that or is there more to the story?)
Hope your year gets better from here on!