Moving files between folders on the same drive only changes the pointers, the file itself stays in the same place and fragmentation state.
Moving between drives the file is copied and written in contiguous blocks so is unfragmented, if there is enough space on the target drive to do so.