Q: Is it plagiarism if I cite all sources but by mistake include a wrong reference?
Plagiarism involves deliberately or inadvertently referencing previously published work, whether somebody else’s or yours, without acknowledging the source. In this case, without knowing the exact meaning of “a wrong reference,” it would be difficult to say if it qualifies as plagiarism. If it does, it’s probably a case of accidental plagiarism, one done mistakenly rather than deliberately. However, it could also be an error, whether in the name of the title or author(s), the year of publication, the page number, and so on.
In either case, you may write to the editor informing them of the error. If the article has not yet been published, it should be easier to make the change. However, if the article has already been published, whether in a physical version or online, the change will need to be made by issuing an erratum. All the same, it’s great that you are aware of matters of publication ethics and are seeking to due diligence. So, props for that!
To understand various aspects of plagiarism better, you may also go through the following resources: