Linux Necessity to unmount isb drives before removing it from the pc?

AffirmativeGuy

Apprentice
Hi, is it necessary to unmount the usb drive from a Linux based os before removing it from the pc? Because the other day I removed my pendrive without unmounting it and then when I went to use it in my windows based pc it showed the drive was corrupt and hence I lost all of my data.

Sorry for the dumb question, I am new to linux.