yes, but the main thing is it should be available. and if its available then as soon as entering choice it will be allotted.
I will tell you one case. I booked two tickets for one journey, the next day I went to book another ticket for same train on same dater for my sister. I told him to do it nearby, he asked for the seat nos and to my surprise he booked a ticket in same cabin in same coach.