Version: 6.5.x and 6.7.x
In short: No! If you suspect that your data file is damaged, DO NOT compact the data file. Compacting a damaged data file will complicate the problem where the corruption cannot be repaired. You might consider to perform a basic repair using 4D Tools or, if possible, to recover by tag the data file.