Assuming you don’t have any layers parented to anything else, and the beam is applied to a solid that fits to the comp…
give the arrowhead these expressions:
position:
thisComp.layer("beamlayer").effect("Beam")("Ending Point");
rotation:
vec=thisComp.layer("beamlayer").effect("Beam")("Ending Point")-thisComp.layer("beamlayer").effect("Beam")("Starting Point");
rad=Math.atan2(vec[1],vec[0]);
radiansToDegrees(rad)+value;
If the arrow is flipped or 90 degreess of, just scrub the rotation value to + or -90
of course: change “beamlayer” to the name of your beam layer 😎