I followed a criminal lawyer during my internship, but does it matter if I want to work in civil affairs in the future?

It may have a certain impact on professional ability. After all, lawyers who practice are criminal lawyers and have little contact with civil affairs. But it doesn't matter what kind of business you want to engage in after the internship. As long as you successfully pass the internship, you can do everything a lawyer can do.