Data loss or data corruption will happen whether your system is writing data to your USB or not. Most operating systems use write caching to get better performance out of your computer. If you interrupt the writing process abruptly, data corruption may happen. Certainly, do not yank out the drive directly even if the writing process has finished.