No, typically, only the last ad interaction before the conversion is credited with the sale or action, depending on the attribution model used.
However, in some attribution models, such as the "linear" or "time decay" models, both ads might receive partial credit for contributing to the conversion. The specific crediting depends on the attribution settings in the ad platform, such as Google Ads or Facebook Ads.