Yes but Lee freed his slaves when he left to serve in the Army of Northern VA.
That is a lie.
Lee freed no slave until the very last minute --as required-- by the terms of the will of his father in law that he was executing. That date was at the end of 1862.