about root diffiulties

1) can i do the rooting without formatting the memory?
2) If need to format the memory, can i do the backup first and put all the backup data back to the phone after rooting process?

Thx!