Yes, you may paste that code to get the price, so long as it is inside the main “for” loop of the template:
{% for line_item in line_items_in_shipment %}
...Keep price code snippet inside here...
{% endfor %}
I take it back, I said that Shopify meant it could not be done easily. Wrong!
I’m so glad the code worked for you! Send me a DM if you need help with formatting.
Will you please click Accept as Solution on my answer? Thank you.