Yes, it is legal to offer a no return policy. There are no laws that prohibit no return policies, but there are laws that require businesses to clearly display their no return policy if they have one.
Consumer laws in some countries also require businesses to accept returns for damaged or defective products, even if there’s a no return policy in place.