PCM BAD

My PCM board has been condemned bad which is what cause my vehicle to misfire, and a whole other bit of issues. My 2005 dodge Dakota 4.7L

Is this worth a new board or trash? And if yes what would this kind of job cost.