Right or wrong is relative ...
What wasn't right is that the Fireflies didn't ask for Ellie's permission, withheld information about the experiments, Joel lied about about the events surrounding Ellie's unconsciousness and I don't mean that morally, I mean that technically ...
There was also no guarantee they would've found a cure either ...