Sure, you can, but why would you want to use a wasteful linear regulator when you can use an efficient DC-DC converter. They're sold as USB car voltage adapters or you can often find one that's been a cell phone charger at a thrift store for $1-$2. If you look at the labels, you'll see that most are rated for 12-24V input.