It’s complicated, but I think the state matters a great deal.
There is a federal statutory rape provision (18 USC 2243), but it only applies in the “special maritime and territorial jurisdiction of the United States” (or in some prisons). That quoted phrase means a lot of things, but generally refers to areas where federal law overrides state law, like military bases. (See 18 USC 7).
So, although someone may be charged with trafficking in the federal court based on federal law and federal age standards, an charge of statutory rape would be based on state law where the act occurred.