In general, it doesn't matter a lot, especially if you have more than a few publications.
However, if you work in a field with a number of sub-disciplines and different audiences, which journals you publish in says something about your specialization.
Say, you are a political scientist and have only published three papers so far. Those papers analyzed the implementation of different environmental policy instruments on different levels of government (regional, national, European, international). With this overlapping topic you could have published some or all of your papers in an environmental policy journal, in an European integration journal, in a regulation-focused journal, or in an international relations journal, etc.
If, for some reason, you published all three in, say, Environmental Policy and Governance, this will brand you as environmental policy specialist. But perhaps you would rather like to be seen as European integration scholar, as a comparative politics researcher, or as someone with a broad profile. This is a strategic decision that you have to make especially at the beginning of your career, with a view to the jobs you are planning to apply for.
So the answer to your question depends on your career trajectory and on which profile you want to build.