Not at all. Restarting/rebooting process is completely safe. Think of it as refreshing your computer but it just takes a longer time than that. Only the phone’s RAM gets cleaned nothing else. Running apps and anything which was running/open before the restart will be purged though.