That’s not possible because of the decentralized structure of the nostr protocol. You can build some code that is checking this for you but you have no guarantee that this is your first interaction.
Relays can purge data or your first interaction was over relays that don’t exist anymore