It's a bit dangerous to use a job you'd not take under any circumstances as leverage though. It's just like making an alternative offer up. A bluff you might get called on.
You don't say "I'll walk if you don't meet my terms" if you really want the job. But simply mentioning you have another offer can improve the terms you'll get.