Yes, also the other device must support the same frequency, and the antenna must be able to work. For example, some MikroTik CPE devices support 2.7GHz in the chipset, but antenna gain will be 30% of normal, if you use such frequency, so distance will be much smaller than maximum possible. You can see it here on page 3, see how antenna gain drops sharply at some frequencies:
https://i.mt.lv/cdn/rb_files/LHG-170927115805.pdf
Well that is a very valuable information. Thanks for pointing this out. I was planning of something to make a permanent deployment, which, now I should think again.
Anyway, for this particular scenario, it the normal achievable distance on the device you mentioned is 12 KM (i am assuming that) than I dont think that I will have any issue with 1 KM (or less) with 6ghz.
Please do correct me if I am wrong