Legal? Yes. You won't get arrested for it.

But it's not a good thing.