You need to account for the account being deleted or the password being changed, so no that will not work.
The best way to save a user's credentials is to implement a token system like OAuth on your server, and store the token instead of the username/password.
If you can't modify the server, then your best bet is to store username and an encrypted password, and authenticate with the server every time the user opens the app.