Yes, you can add the following code in the template content:
{% if product.product.quantity_and_stock_status == 'in stock' %}
{% endif %}
Screenshot: https://i.imgur.com/2sF7GlJ.png
{% if product.product.quantity_and_stock_status == 'in stock' %}
{% endif %}
Screenshot: https://i.imgur.com/2sF7GlJ.png
Updated on: 03 / 31 / 2020