It's basically correct if you peel back a few abstractions: Taxes must be paid in dollars in accordance with federal law. Federal law is established through elected representatives. The legislative process is a democratic republic's mechanism for coming to agreement on rules that affect society at large.
In other words, at some point in time a bunch of elected representatives agreed that the dollar would be worth something and codified that in law.