Only corruption that can happen is because of the data inside memory, be it RAM or HDD cache. If data written is incomplete or lost entirely, you can corrupt partitions or files. Or even make system unbootable in rare cases. If possible, shut it off properly, but in general from a hardware perspective, it doesn't really matter.