This is definitely wrong.
Defragmenting is done like this:
A) copy the fragmented file to a free place in the disk
B) Move away any other files in that old place until we have enough free space to fit the first file
C) Copy back the first file to its old place. As the other files are gone, it fits into the free space completely, rendering it unfragmented.
As you can see we have a lot of write operations here and these operations wear down a SSD. Remember: A specific cell can only be written abount 10k times. Defragmentation reads and writes files very often over the same place, aging this cell rapidly. If the cell is gone, the whole chip is automatically disabled, rendering the SSD alsmost completely unfunctional.
Thats why we always state: Never defragment a SSD. Its useless AND it kills the SSD.