You can get a U.S. patent if you invent "any new and useful process, machine, manufacture, or composition of matter, or any new and useful improvement thereof" if you meet "the conditions and requirements" of U.S. Code title 35. 35 U.S.C. § 101.
The first of the four things the statute lists — a "process"