Sure. Unless you work some sort of "flex time" or other schedule that you determine yourself, an employer expects you to be at work, on time, whenever you are scheduled to be there. If you are not, it can seriously disrupt the employer's work. When you aren't there, you are subject to discipline, and most employers reserve the right to discharge employees who are repeatedly late or absent. It may well be that the responsible person within your company was not aware you were late until several days after the incident. You were late, and you're going to have to take responsibility for that.
This response is not intended to, nor does it provide legal advice. You should consult with competent local counsel to determine your legal rights.