Luckily, no. The standard Linux filesystem works in a way that it can tolerate abrupt system changes, as most files in your machine can preserve some data about their state before the restart. While data corruption is less likely in Linux, it is still possible to lose data that only exists in your machine's memory. You need to make sure that you have saved everything you're currently doing to disk before attempting any desktop restart.