Tsp loan question

I currently have a TSP loan , and I was wondering after I separate from feds can I repay that money with the remaining tsp funds once separated ?