The background check is just that, they could know you "tried or attempted" to purchase a gun.
They don't know if you did buy it, or what it was. Also here there is a background check for ammo too. The stupid thing is, if I buy a gun today, I have to do a background check, if I go in the next day, I need to submit to another background check, it is just a revenue generator.