Terminating an employee is rarely a spur-of the moment decision. Usually a series of events leads up to the moment when you decide it’s time for you and one of your employees to part ways.
But, if you haven’t kept records of your efforts to help an employee improve, it will be your word against theirs should they try to claim you fired them for an illegal reason.