Yes, in most countries, you can legally download and use Tor. But how you use it matters: illegal activities are still illegal over Tor.