Yes, you can change the reason for the rejection and make any other changes you wish and then refile. Your tax return is not considered final/filed until you receive an email stating it has been Accepted.
Once Accepted, if you needed to make changes, that would require filing an amended return.