Yes, it works
Definitely if you are doing neurosurgery or neurology electives and research will help in each other matching probability later on.
Neurologist in fact will be impressed when apply to them after you have done a highly advanced neurosurgery research for example.
However, I want to remind you here that you are (being an IMG) having very low chances in neurosurgery residency. This is one of the most competitive residencies of all times.
If you look at last year's match results you'll see that less than 1% of all those accepted in neurosurgery were in fact IMGs.
Having said that, I advise you to focus on neurology all the way towards your match.
Definitely if you are doing neurosurgery or neurology electives and research will help in each other matching probability later on.
Neurologist in fact will be impressed when apply to them after you have done a highly advanced neurosurgery research for example.
However, I want to remind you here that you are (being an IMG) having very low chances in neurosurgery residency. This is one of the most competitive residencies of all times.
If you look at last year's match results you'll see that less than 1% of all those accepted in neurosurgery were in fact IMGs.
Having said that, I advise you to focus on neurology all the way towards your match.