Yes, you can. If you have realized your mistake early on, do not fail to offer a heartfelt apology.