Disagree, for PhD admissions it can be important to have done the right sort of modules. If you have (eg) done insufficient mathematics during your undergrad, this can kill your application if you are applying for something math based even if your PhD is in a quantitative field. Ditto if you have (eg) not done enough programming, and so on. Its not so much the specific module titles that matter, but more that they are close enough to what you are applying for that they can be taken as evidence of competence in that area.
Also despite what someone said above, its not just your overall grade that matters, people may look at your grade in the modules which they consider most important. If you get a first (70%+) overall but only 60% in your mathematics modules, you would struggle to get accepted into a math-based PhD (other fields are probably similar). There is a reason why you are usually asked to submit a transcript when you apply, it isnt just for show.
Having said that, I wouldnt get stressed out because a single module you took in second year isnt relevant - that isnt likely to be a problem. Just make sure you pick more relevant modules in third year and you'll be fine.