Welcome to the site !!
Ken would be the real one to answer that question , as he does them all the time (the owner of the site).... BUT .... from what it looks like in the picture , the dents should not cause a issue , as they are not going to affect anything but maybe a slight turbulence disruption of flow , but what I see is the lip of the valve guide is bent from the impact , so at the very least the guide would have to be replaced , which is usually done with a full head job anyway ....so with that I think the head is salvageable ....
However , when a valve hits a piston ,you will need to replace the crank ... 99% of the time when a valve hits a piston , it damages the rod bearing from the impact and lockup , it puts a flat spot on the actual bearings themselves , so what will happen is you will end up with a rod knock , not to mention if the rod was bent during the sudden lockup , and failure down the road is inevitable if you don't replace the crank as well ... it is most likely going to be that the first time you fire it up , it will have a knock .... I have seen it a dozen times , when people don't want to replace the crank after a catastrophe like that , then you end up tearing down the entire engine after the top end was put together , because you did not replace the crank/rod in the first place ...