Yes. Appraisers can use cash sales as comps. A cash sale is a valid comparable as long as it was an arm's-length sale at market value, and how the buyer paid doesn't change what the property sold for.
What matters is whether the sale reflects the market. Before using any comp, cash or financed, the appraiser confirms it wasn't a distressed or non-market sale, such as a foreclosure, a short sale or a sale between relatives. A cash sale that passes that test is treated like any other closed sale.
Financing can still matter on the other side. A financed comp with large seller concessions may be adjusted down to reflect the price the buyer effectively paid. In markets where many buyers pay cash, leaving cash sales out would ignore a large part of the market.
For how appraisers pick comps by distance, age and similarity, see the appraisal comps guidelines, or read what a home appraiser looks for.