Yes. Before performing any kind of repair, it's a good idea to ensure your data is safe. It is extremely unlikely that you will lose your mobile data during a repair. However, if your iPhone is functional, always back it up first.