Yes. From a game situation standpoint, Dak probably made a wrong call. However, from a formation situation, he could have made the right call.......... but that's the problem with the coaches putting that call in. If they call a RPO in that situation it's basically telling the QB, especially a young one, to do what he would do at any point in the game......... read the formation/defense and make the call. So in that sense, Dak did what he was likely supposed to do.
Now maybe a seasoned vet like a Brady or Rodgers or Brees understands the situation and would override the coaches call and explain himself later, but in that moment, for a young QB, I think it's a lot to ask him to basically override the call the coaches gave him.
That pass is on the coaches plain and simple.