Yes — San Pedro cacti are widely sold as ornamental plants in the US and are legal to purchase and possess. What is illegal is extracting mescaline from them for consumption. Mescaline is a Schedule I controlled substance under the federal Controlled Substances Act (DEA, 2020). Possessing the plant is legal; using it ceremonially is not under federal law.