Is it safe to format C drive if default folders are moved in E partition?

Hello

I have moved Windows 10 default created folders like "Documents", "Music", "Pictures" etc. to my E partition, and would like to know whether I can safely format the C partition and reinstall Windows without losing data in these folders, or do I need to backup all these folders again to another device before doing so?

Thanks.