Most modern thermostatic radiator valves are bi-directional, so they can be fitted to either the flow or return pipe.
However, it is considered best practice to attach the valves to the flow pipe whenever possible.
Otherwise, if a non-bi-directional TRV is installed on the return pipe, it will cause a vibrating noise as the water attempts to flow through it.