I need advise

Is it ever okay to admit to someone that you miss them, when your the one who ended things because you knew he messed up???