How to swap NFT with Token

Hello, Iā€™m sorry for this noob question but I just want clarification if what we wanted is possible.

  1. We have our own crypto currency
  2. We have our own NFTs
  3. What we want to happen is
    3.1. When a user Purchase our NFT
    3.2. When they connect their wallet to our website, they will have an option to swap that NFT with our Crypto currency.

I already tested the APIs here in moralis like sending token, listing of purchased NFT.

But I want feedback if what we are trying to do is possible. Thank you