More likely, you can refuse, but you'll be escorted out of the terminal (and refused reentry).
I doubt you'll "go to jail" unless you assault the TSA agent, become disorderly, etc.