Pass back if purchase is from a new customer

Hi, I’m looking to only pass back data on purchases from new customers and NOT existing customers. I have the below applied.

{% if customer.has_account == false %}

{% endif %}

When we checked the order IDs when using the above , we saw 420 customers and only about 80 of them were new. Is there another way or another macro to only get purchases from new customers?