Yes, in IIT Roorkee rooms are somewhat allotted based on JEE AIR. One of my friends who studied there told me her neighbors shared the first 2 or 3 digits of rank. However, there is no partiality and only top rankers aren’t allotted the best rooms. The layout and size of rooms in most hostels are similar with minor differences.
The freshers are allotted the Rajendra Bhavan which has 3 blocks. The opening rankers might be given a slight advantage here. Most branch mates are neighbors unless you are an opening rank of the branch, you will be allotted the block where other rank openers reside.
From 2nd year, you will be sharing a hostel with PG students and Research scholars who complain about any noise.