After replacing the mobile operating system, can the original app account log in normally?

As long as you use the same app, you can still log in and keep the original data and settings.